89% admin-speedo

Code Review | Admin Speedo

WordPress plugin Admin Speedo scored89%from 54 tests.

About plugin

  • Plugin page: admin-speedo
  • Plugin version: 2.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2022
  • Latest release: Dec 11, 2022
  • Number of updates: 16
  • Update frequency: every 1.0 days
  • Top authors: rajinsharwar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /715 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▲1.16ms] Passed 4 tests

This is a short check of server-side resources used by Admin Speedo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.6036.69 ▼1.11
Dashboard /wp-admin3.90 ▲0.6053.30 ▲5.36
Posts /wp-admin/edit.php3.95 ▲0.6048.03 ▼0.17
Add New Post /wp-admin/post-new.php6.42 ▲0.5390.63 ▲4.28
Media Library /wp-admin/upload.php3.68 ▲0.4536.21 ▲1.62
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius4.0345.35

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 185 new files
Database: no new tables, 38 new options
New WordPress options
adminsp_remove_woo_widgets
adminsp_remove_marketplace_sugg_woo
adminsp_remove_admin_footer_text
adminsp_remove_querystrings
can_compress_scripts
adminsp_remove_shortlink
db_upgraded
adminsp_disable_xmlrpc
adminsp_sched_transients_clear
adminsp_disable_setup_dash_woo
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Speedo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10013.24 ▼1.371.73 ▼0.1333.49 ▼11.17
Dashboard /wp-admin2,246 ▲585.83 ▲0.01103.20 ▲0.6341.55 ▼0.03
Posts /wp-admin/edit.php2,135 ▲462.00 ▼0.0135.91 ▼0.0336.82 ▲1.42
Add New Post /wp-admin/post-new.php1,544 ▲1123.41 ▲0.30643.64 ▼20.0555.21 ▼8.72
Media Library /wp-admin/upload.php1,428 ▲464.21 ▼0.0097.93 ▼1.2045.31 ▲4.84
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius1,0931.8424.2030.43

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • fs_accounts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_debug_mode
    • widget_theysaidso_widget
    • fs_active_plugins
    • fs_gdpr
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

admin-speedo/adminspeedo.php 85% from 13 tests

Analyzing the main PHP file in "Admin Speedo" version 2.4.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-speedo.php" instead of "adminspeedo.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected34,208 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP1238,09117,17333,787
Markdown1680214
JavaScript33459194
CSS130013

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity93.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes24.17%
▷ Concrete classes4695.83%
▷ Final classes00.00%
Methods1,253
▷ Static methods19215.32%
▷ Public methods87169.51%
▷ Protected methods171.36%
▷ Private methods36529.13%
Functions116
▷ Named functions116100.00%
▷ Anonymous functions00.00%
Constants145
▷ Global constants9867.59%
▷ Class constants4732.41%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/vendor/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
inc/vendor/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%