84% unblock-cs-jss-for-googlebot

Code Review | Unblock CSS & JS for Googlebot

WordPress plugin Unblock CSS & JS for Googlebot scored84%from 54 tests.

About plugin

  • Plugin page: unblock-cs-jss-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Feb 6, 2016
  • Number of updates: 7
  • Update frequency: every 27.0 days
  • Top authors: stubgo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Unblock CSS & JS for Googlebot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.87 ▼1.90
Dashboard /wp-admin3.31 ▼0.0449.36 ▼9.36
Posts /wp-admin/edit.php3.36 ▲0.0048.44 ▲2.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.29 ▼16.21
Media Library /wp-admin/upload.php3.23 ▲0.0035.94 ▲1.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Unblock CSS & JS for Googlebot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.60 ▼0.962.07 ▲0.2946.14 ▲4.06
Dashboard /wp-admin2,206 ▲204.87 ▼1.0496.21 ▼7.1938.61 ▼4.18
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0134.18 ▼2.6931.83 ▼3.37
Add New Post /wp-admin/post-new.php1,538 ▲2423.27 ▲5.84656.27 ▼21.6162.07 ▲17.70
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0195.49 ▼10.0343.11 ▼0.49

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/unblock-cs-jss-for-googlebot/unblock-css-js-for-googlebot.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: googlebot, robotstxt, robots, seo

unblock-cs-jss-for-googlebot/unblock-css-js-for-googlebot.php 92% from 13 tests

"Unblock CSS & JS for Googlebot" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("unblock-cs-jss-for-googlebot.php" instead of "unblock-css-js-for-googlebot.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
Good job! No executable or dangerous file extensions detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131920

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected