74% speedplus-optimini

Code Review | SpeedPlus OptiMini

WordPress plugin SpeedPlus OptiMini scored74%from 54 tests.

About plugin

  • Plugin page: speedplus-optimini
  • Plugin version: 1.4.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Sep 24, 2022
  • Number of updates: 31
  • Update frequency: every 17.3 days
  • Top authors: speedplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,658 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼8.39ms] Passed 4 tests

Server-side resources used by SpeedPlus OptiMini
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1841.74 ▲2.51
Dashboard /wp-admin3.50 ▲0.1648.42 ▼9.16
Posts /wp-admin/edit.php3.62 ▲0.2645.10 ▼5.26
Add New Post /wp-admin/post-new.php6.09 ▲0.2080.62 ▼17.03
Media Library /wp-admin/upload.php3.43 ▲0.2033.61 ▼2.12
SpeedPlus OptiMini /wp-admin/options-general.php?page=speedplus-optimini3.4031.91

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SpeedPlus OptiMini
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.35 ▼0.221.79 ▲0.1944.32 ▲4.12
Dashboard /wp-admin2,198 ▲185.49 ▼0.1985.22 ▲0.4337.88 ▼3.81
Posts /wp-admin/edit.php2,106 ▲31.97 ▲0.0033.19 ▼8.5534.96 ▼2.64
Add New Post /wp-admin/post-new.php1,536 ▲1023.33 ▲0.39624.20 ▼34.1856.39 ▲7.51
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.03100.27 ▼2.7440.97 ▼2.44
SpeedPlus OptiMini /wp-admin/options-general.php?page=speedplus-optimini1,2661.7424.1433.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-admin/includes/plugin.php+1242
    Constant WP_UNINSTALL_PLUGIN already defined
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedplus-optimini/speedplus-optimini.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speedplus-optimini/includes/options.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

speedplus-optimini/speedplus-optimini.php Passed 13 tests

The main file in "SpeedPlus OptiMini" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
51 characters long description:
Increase PageSpeed score and make your site faster.

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 detected1,697 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP362162957
PO File2214222728
CSS10012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions81
▷ Named functions6580.25%
▷ Anonymous functions1619.75%
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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/stop-war-in-ukraine-2.png8.91KB3.97KB▼ 55.44%