89% bf-wpo-dequeuer

Code Review | BF WPO Dequeuer

WordPress plugin BF WPO Dequeuer scored89%from 54 tests.

About plugin

  • Plugin page: bf-wpo-dequeuer
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Apr 25, 2019
  • Latest release: Nov 24, 2020
  • Number of updates: 8
  • Update frequency: every 72.5 days
  • Top authors: dariobf (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /840 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼17.93ms] Passed 4 tests

An overview of server-side resources used by BF WPO Dequeuer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0226.57 ▼9.81
Dashboard /wp-admin3.14 ▼0.1728.59 ▼19.27
Posts /wp-admin/edit.php3.27 ▼0.0836.14 ▼14.40
Add New Post /wp-admin/post-new.php5.28 ▼0.6176.97 ▼27.88
Media Library /wp-admin/upload.php3.22 ▼0.0126.54 ▼10.18

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BF WPO Dequeuer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.75 ▲0.111.87 ▼0.1046.66 ▼3.33
Dashboard /wp-admin2,236 ▲484.89 ▼0.02114.06 ▼10.8145.14 ▲1.78
Posts /wp-admin/edit.php2,125 ▲392.05 ▲0.0145.65 ▲3.9936.08 ▼4.76
Add New Post /wp-admin/post-new.php1,546 ▲2723.19 ▲0.02731.66 ▼2.2653.79 ▼2.11
Media Library /wp-admin/upload.php1,425 ▲374.23 ▲0.07107.83 ▼13.0944.73 ▼6.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (This is how the backend of the plugin looks like. You'll can configure all the aspects through one single configuration page.) image not found
Please take inspiration from this readme.txt

bf-wpo-dequeuer/bf-wpo-dequeuer.php 92% from 13 tests

The entry point to "BF WPO Dequeuer" version 1.1.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected374 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP67896374

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.00
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png72.88KB23.19KB▼ 68.18%