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: 5.9.2
  • 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

900+ active / 16,391 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Advanced Speed Increaser
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0258.16 ▲4.81
Dashboard /wp-admin3.43 ▲0.0235.64 ▼16.05
Posts /wp-admin/edit.php3.65 ▲0.0140.35 ▲2.12
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.48 ▼1,249.43
Media Library /wp-admin/upload.php3.30 ▲0.0124.48 ▼4.22

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

Filesystem and database footprint
Please try to fix the following items
  • You have 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, 1 new option
New WordPress options
tw_asi_status

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Speed Increaser
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.85 ▲0.196.28 ▲0.002.21 ▼1.12
Dashboard /wp-admin2,910 ▲526.19 ▲0.05123.19 ▼31.24238.38 ▲66.68
Posts /wp-admin/edit.php2,707 ▲162.92 ▼0.3166.26 ▼1.58146.78 ▼2.55
Add New Post /wp-admin/post-new.php1,676 ▲1519.45 ▼2.83409.01 ▲0.88206.46 ▲36.97
Media Library /wp-admin/upload.php1,715 ▲175.51 ▲0.01142.52 ▼8.48213.25 ▲25.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • tw_asi_status

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

The principal PHP file in "Advanced Speed Increaser" v. 2.2.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 249 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin338 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24317330
CSS1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%