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
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3049.31 ▲7.08
Dashboard /wp-admin3.59 ▲0.2453.15 ▼10.17
Posts /wp-admin/edit.php3.62 ▲0.2759.59 ▲7.81
Add New Post /wp-admin/post-new.php6.11 ▲0.22104.56 ▲6.50
Media Library /wp-admin/upload.php3.45 ▲0.2245.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7014.14 ▼0.141.57 ▼0.3937.87 ▼7.32
Dashboard /wp-admin2,222 ▲455.52 ▼0.1696.63 ▼3.7582.24 ▲33.55
Posts /wp-admin/edit.php2,147 ▲472.03 ▲0.0639.78 ▼1.2643.04 ▲6.83
Add New Post /wp-admin/post-new.php1,560 ▲3225.21 ▲2.00715.88 ▲23.1456.47 ▲10.62
Media Library /wp-admin/upload.php1,418 ▲154.11 ▼0.0798.51 ▼0.3081.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:
LanguageFilesBlank linesComment linesLines of code
PHP173874651,288
JSON300148
CSS114075
Markdown214047
XML20032
YAML11110
SVG1001

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 code0.38
Average class complexity18.10
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods91
▷ Static methods4043.96%
▷ Public methods8795.60%
▷ Protected methods22.20%
▷ Private methods22.20%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/logo.png28.74KB14.89KB▼ 48.19%
assets/img/logo-light.png28.91KB14.88KB▼ 48.53%
assets/img/copyright-logo.png1.02KB1.04KB0.00%