94% lh-dequeue-woo

Code Review | LH Dequeue Woo

WordPress plugin LH Dequeue Woo scored 94% from 54 tests.

About plugin

  • Plugin page: lh-dequeue-woo
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 5.8.1
  • First release: Nov 14, 2017
  • Latest release: Jun 6, 2019
  • Number of updates: 3
  • Update frequency: every 189.7 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 425 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼148.18ms] Passed 4 tests

Analyzing server-side resources used by LH Dequeue Woo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.67 ▼0.0525.05 ▲3.94
Dashboard /wp-admin3.07 ▲0.0244.08 ▼1.29
Posts /wp-admin/edit.php3.12 ▲0.0247.52 ▲4.87
Add New Post /wp-admin/post-new.php5.44 ▲0.0094.38 ▼586.01
Media Library /wp-admin/upload.php3.01 ▲0.0129.68 ▼9.34

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for LH Dequeue Woo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.96 ▲0.4710.57 ▼1.6045.75 ▼0.27
Dashboard /wp-admin2,973 ▲395.92 ▲0.00134.33 ▼12.62107.75 ▲2.30
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0162.27 ▼4.8694.40 ▲11.20
Add New Post /wp-admin/post-new.php1,691 ▲19118.91 ▲0.16365.17 ▼27.29112.23 ▼1.24
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.03149.88 ▲8.22117.41 ▼11.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lh-dequeue-woo/lh-dequeue-woo.php:76

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: styles, scripts, dequeue, speed, woocommerce

lh-dequeue-woo/lh-dequeue-woo.php Passed 13 tests

The entry point to "LH Dequeue Woo" version 1.01 is a PHP file that has certain tags in its header comment area
48 characters long description:
Plugin to dequeue Woocommerce styles and scripts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1411042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin