83% advanced-speed-increaser

Code Review | Advanced Speed Increaser

WordPress plugin Advanced Speed Increaser scored 83% from 54 tests.

About plugin

  • Plugin page: advanced-speed-in...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Apr 3, 2020
  • Number of updates: 24
  • Update frequency: every 55.3 days
  • Top authors: animeshsarakd (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active / 17,274 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Advanced Speed Increaser
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.23 ▼7.72
Dashboard /wp-admin3.32 ▲0.0143.83 ▼5.35
Posts /wp-admin/edit.php3.37 ▲0.0146.14 ▲1.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.45 ▲3.00
Media Library /wp-admin/upload.php3.24 ▲0.0138.93 ▲4.94

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

Input-output and database impact of this plugin
These are issues you should consider
  • The plugin illegally modified 1 file (2.41KB) outside of "wp-content/plugins/advanced-speed-increaser/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
tw_asi_status

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Speed Increaser
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲613.67 ▲0.411.71 ▼1.0039.02 ▼3.52
Dashboard /wp-admin2,220 ▲145.83 ▲1.0097.52 ▼13.2563.10 ▲18.18
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0435.20 ▲1.5334.88 ▼1.87
Add New Post /wp-admin/post-new.php1,682 ▲14522.25 ▼0.92768.89 ▲174.8653.81 ▼0.44
Media Library /wp-admin/upload.php1,405 ▲234.21 ▼0.0396.09 ▼2.6778.70 ▲30.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • tw_asi_status
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-speed-increaser/admin-setting.php:62
    • > PHP Notice
      Undefined variable: settings_status in wp-content/plugins/advanced-speed-increaser/admin-setting.php on line 55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/advanced-speed-increaser/advanced-speed-increaser.php:16

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

advanced-speed-increaser/advanced-speed-increaser.php 92% from 13 tests

The main PHP file in "Advanced Speed Increaser" ver. 2.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 249 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin338 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24317330
CSS1008

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon20x20.png3.09KB0.64KB▼ 79.37%