74% speedup-optimization

Code Review | Speedup Optimization

WordPress plugin Speedup Optimization scored74%from 54 tests.

About plugin

  • Plugin page: speedup-optimization
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.0
  • WordPress version: 6.3.1
  • First release: Feb 9, 2022
  • Latest release: Sep 27, 2022
  • Number of updates: 7
  • Update frequency: every 51.7 days
  • Top authors: charlycharm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,371 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.27ms] Passed 4 tests

An overview of server-side resources used by Speedup Optimization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1337.50 ▼6.95
Dashboard /wp-admin3.39 ▲0.0946.39 ▼0.32
Posts /wp-admin/edit.php3.50 ▲0.1547.96 ▼1.41
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.20 ▼3.29
Media Library /wp-admin/upload.php3.31 ▲0.0934.38 ▼1.42
SpeedUp Optimization /wp-admin/options-general.php?page=speedup-help3.2830.41

Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • You have illegally modified 5 files (33.86KB) outside of "wp-content/plugins/speedup-optimization/" and "wp-content/uploads/"
    • (new file) webanalyze/firewall/firewall.speedup.php
    • (new file) siteguarding_tools.php
    • (modified) .htaccess
    • (modified) index.php
    • (new file) webanalyze/firewall/firewall.speedup.ini
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Speedup Optimization
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.54 ▲0.481.92 ▲0.1842.75 ▼0.71
Dashboard /wp-admin2,227 ▲365.82 ▲0.95103.86 ▼15.1339.81 ▼3.41
Posts /wp-admin/edit.php2,116 ▲242.01 ▼0.0137.24 ▼6.7332.74 ▼1.98
Add New Post /wp-admin/post-new.php1,556 ▲2222.69 ▼0.50627.48 ▼27.9860.72 ▲0.35
Media Library /wp-admin/upload.php1,418 ▲274.22 ▲0.0295.35 ▼6.7640.97 ▼2.41
SpeedUp Optimization /wp-admin/options-general.php?page=speedup-help1,2462.0233.5627.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/speedup-optimization/speedup-optimization.php+253
    unlink(/webanalyze/firewall/firewall.speedup.on): No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speedup-optimization/speedup-optimization.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: The official readme.txt is a good inspiration

speedup-optimization/speedup-optimization.php Passed 13 tests

"Speedup Optimization" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
137 characters long description:
Speedup your WordPress site. Increasing website performance and reducing load time. At least 10x improvement in overall site performance.

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
Success! There were no dangerous files found in this plugin2,394 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG1011,549
PHP2238165836
INI13155
HTML1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity9.11
▷ Minimum method complexity2.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/step2.png37.21KB13.69KB▼ 63.22%
images/livechat.png14.97KB6.22KB▼ 58.43%
images/step4.png67.28KB26.50KB▼ 60.61%
images/step5.png58.21KB22.98KB▼ 60.53%
images/step1.png59.95KB22.45KB▼ 62.55%