84% pubjet

Code Review | Pubjet | پاب‌جت

WordPress plugin Pubjet | پاب‌جت scored84%from 54 tests.

About plugin

  • Plugin page: pubjet
  • Plugin version: 2.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 26, 2023
  • Latest release: Nov 26, 2023
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: pubjet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /37 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▲2.64ms] Passed 4 tests

Server-side resources used by Pubjet | پاب‌جت
Normal server usage
Page Memory (MB) CPU Time (ms)
Home / 3.77 ▲0.30 49.31 ▲7.08
Dashboard /wp-admin 3.59 ▲0.24 53.15 ▼10.17
Posts /wp-admin/edit.php 3.62 ▲0.27 59.59 ▲7.81
Add New Post /wp-admin/post-new.php 6.11 ▲0.22 104.56 ▲6.50
Media Library /wp-admin/upload.php 3.45 ▲0.22 45.11 ▲7.13

Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
pubjet_last_checking_missed_post

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pubjet | پاب‌جت
Minimal impact on browser resources
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,817 ▲70 14.14 ▼0.14 1.57 ▼0.39 37.87 ▼7.32
Dashboard /wp-admin 2,222 ▲45 5.52 ▼0.16 96.63 ▼3.75 82.24 ▲33.55
Posts /wp-admin/edit.php 2,147 ▲47 2.03 ▲0.06 39.78 ▼1.26 43.04 ▲6.83
Add New Post /wp-admin/post-new.php 1,560 ▲32 25.21 ▲2.00 715.88 ▲23.14 56.47 ▲10.62
Media Library /wp-admin/upload.php 1,418 ▲15 4.11 ▼0.07 98.51 ▼0.30 81.53 ▲38.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • pubjet_last_checking_missed_post
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pubjet/template/settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: seo, reportage

pubjet/pubjet.php 92% from 13 tests

Analyzing the main PHP file in "Pubjet | پاب‌جت" version 2.3.1
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,601 lines of code in 27 files:
Language Files Blank lines Comment lines Lines of code
PHP 17 387 465 1,288
JSON 3 0 0 148
CSS 1 14 0 75
Markdown 2 14 0 47
XML 2 0 0 32
YAML 1 1 1 10
SVG 1 0 0 1

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code 0.38
Average class complexity 18.10
▷ Minimum class complexity 1.00
▷ Maximum class complexity 47.00
Average method complexity 2.90
▷ Minimum method complexity 1.00
▷ Maximum method complexity 18.00
Code structure
Namespaces 4
Interfaces 0
Traits 0
Classes 10
▷ Abstract classes 0 0.00%
▷ Concrete classes 10 100.00%
▷ Final classes 0 0.00%
Methods 91
▷ Static methods 40 43.96%
▷ Public methods 87 95.60%
▷ Protected methods 2 2.20%
▷ Private methods 2 2.20%
Functions 2
▷ Named functions 1 50.00%
▷ Anonymous functions 1 50.00%
Constants 10
▷ Global constants 10 100.00%
▷ Class constants 0 0.00%
▷ Public constants 0 0.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
File Size - original Size - compressed Savings
assets/img/logo.png 28.74KB 14.89KB ▼ 48.19%
assets/img/logo-light.png 28.91KB 14.88KB ▼ 48.53%
assets/img/copyright-logo.png 1.02KB 1.04KB 0.00%