83% greenlet-booster

Code Review | Greenlet Booster

WordPress plugin Greenlet Booster scored83%from 54 tests.

About plugin

  • Plugin page: greenlet-booster
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2020
  • Latest release: Dec 6, 2020
  • Number of updates: 5
  • Update frequency: every 6.4 days
  • Top authors: greenlet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /499 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.00MB] [CPU: ▼7.52ms] Passed 4 tests

A check of server-side resources used by Greenlet Booster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.00 ▲1.86
Dashboard /wp-admin3.31 ▼0.0349.08 ▼14.82
Posts /wp-admin/edit.php3.36 ▲0.0147.28 ▼7.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.94 ▼9.16
Media Library /wp-admin/upload.php3.23 ▲0.0139.86 ▲6.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Greenlet Booster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.48 ▲0.262.01 ▲0.0944.64 ▲4.40
Dashboard /wp-admin2,218 ▲185.76 ▲0.8698.93 ▼12.2438.64 ▼8.49
Posts /wp-admin/edit.php2,100 ▼02.05 ▼0.0136.16 ▼0.5934.70 ▼1.40
Add New Post /wp-admin/post-new.php1,526 ▼1917.52 ▼5.82677.76 ▼0.2958.14 ▲3.34
Media Library /wp-admin/upload.php1,397 ▼64.16 ▼0.05112.35 ▲10.6647.31 ▼0.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Greenlet\\Booster\\add_filter() in wp-content/plugins/greenlet-booster/library/class-seo.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Greenlet\\Booster\\add_action() in wp-content/plugins/greenlet-booster/library/class-performance.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Greenlet\\Booster\\add_action() in wp-content/plugins/greenlet-booster/library/class-importer.php:32

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

greenlet-booster/booster.php 85% from 13 tests

The main PHP file in "Greenlet Booster" ver. 1.0.1 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: The principal plugin file should be the same as the plugin slug ("greenlet-booster.php" instead of "booster.php")
  • 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 a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin322 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP463190277
JavaScript16538
Markdown1407

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.33
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods316.67%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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