89% defer-css-addon-for-bwp-minify

Code Review | Defer CSS Addon for BWP Minify

WordPress plugin Defer CSS Addon for BWP Minify scored89%from 54 tests.

About plugin

  • Plugin page: defer-css-addon-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-4.3
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Aug 31, 2015
  • Number of updates: 7
  • Update frequency: every 19.9 days
  • Top authors: pauiglesias (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /7,908 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Defer CSS Addon for BWP Minify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.68 ▼0.71
Dashboard /wp-admin3.31 ▼0.0448.78 ▼10.90
Posts /wp-admin/edit.php3.36 ▲0.0048.59 ▲5.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.92 ▼7.10
Media Library /wp-admin/upload.php3.23 ▲0.0031.51 ▼0.47

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Defer CSS Addon for BWP Minify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.111.81 ▲0.0444.13 ▲0.39
Dashboard /wp-admin2,209 ▲215.86 ▲0.9695.76 ▼24.4637.34 ▼7.81
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0540.13 ▲3.3933.95 ▼0.10
Add New Post /wp-admin/post-new.php1,533 ▲1923.45 ▲5.97641.92 ▼11.2555.73 ▲0.27
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0396.67 ▲0.8041.26 ▼5.13

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

defer-css-addon-for-bwp-minify/bwp-minify-defer-css.php 92% from 13 tests

The main PHP file in "Defer CSS Addon for BWP Minify" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("defer-css-addon-for-bwp-minify.php" instead of "bwp-minify-defer-css.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1212628

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin