78% eliminate-render-blocking-css

Code Review | Eliminate Render Blocking CSS

WordPress plugin Eliminate Render Blocking CSS scored78%from 54 tests.

About plugin

  • Plugin page: eliminate-render-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 10, 2017
  • Latest release: Mar 10, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: danielauener (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,849 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.11ms] Passed 4 tests

Analyzing server-side resources used by Eliminate Render Blocking CSS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.97 ▼4.14
Dashboard /wp-admin3.32 ▲0.0245.52 ▼6.83
Posts /wp-admin/edit.php3.37 ▲0.0251.65 ▼0.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.17 ▼9.15
Media Library /wp-admin/upload.php3.25 ▲0.0240.47 ▲6.80
Eliminate Render Blocking CSS /wp-admin/options-general.php?page=eliminate_render_blocking_css3.1932.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Eliminate Render Blocking CSS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.491.69 ▼0.0144.12 ▼1.09
Dashboard /wp-admin2,199 ▲225.60 ▼0.0292.19 ▼0.9740.90 ▼4.89
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0140.70 ▲1.2836.46 ▲1.95
Add New Post /wp-admin/post-new.php1,529 ▲123.83 ▲0.62616.95 ▼73.6247.69 ▼13.49
Media Library /wp-admin/upload.php1,398 ▼24.27 ▲0.0996.88 ▼15.6744.35 ▼3.21
Eliminate Render Blocking CSS /wp-admin/options-general.php?page=eliminate_render_blocking_css8782.0922.4229.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=eliminate_render_blocking_css
    • > Notice in wp-content/plugins/eliminate-render-blocking-css/erbcss-settings.php+124
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eliminate-render-blocking-css/erbcss-settings.php:3

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 Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: above the fold css, eliminate render-blocking css, critical css

eliminate-render-blocking-css/eliminate-render-blocking-css.php 85% from 13 tests

The principal PHP file in "Eliminate Render Blocking CSS" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin376 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP319147376

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin