90% speed-up-menu

Code Review | Speed Up - Menu Cache

WordPress plugin Speed Up - Menu Cache scored90%from 54 tests.

About plugin

  • Plugin page: speed-up-menu
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Mar 5, 2023
  • Number of updates: 42
  • Update frequency: every 56.9 days
  • Top authors: nigro.simone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,869 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.47ms] Passed 4 tests

Analyzing server-side resources used by Speed Up - Menu Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.93 ▲0.12
Dashboard /wp-admin3.34 ▲0.0348.51 ▲3.96
Posts /wp-admin/edit.php3.39 ▲0.0351.15 ▼0.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0399.15 ▼1.30
Media Library /wp-admin/upload.php3.26 ▲0.0335.77 ▲3.64
Purge menu cache /wp-admin/themes.php?page=speed-up-menu-purge3.2135.05

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Speed Up - Menu Cache: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.27 ▼1.111.90 ▼0.5643.47 ▼3.81
Dashboard /wp-admin2,204 ▲135.82 ▲0.9198.88 ▼3.7645.19 ▲1.37
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0340.58 ▲0.3936.83 ▼0.27
Add New Post /wp-admin/post-new.php1,535 ▼018.13 ▼5.05676.66 ▲49.6272.22 ▲21.01
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0298.80 ▼4.2745.35 ▲2.73
Purge menu cache /wp-admin/themes.php?page=speed-up-menu-purge7642.0325.8827.70

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

speed-up-menu/speed-up-menu.php Passed 13 tests

The principal PHP file in "Speed Up - Menu Cache" v. 1.0.18 is loaded by WordPress automatically on each request
116 characters long description:
The menu reduces speed of Wordpress. This plugin offers a caching solution that reduces this effects on performance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected168 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP174138168

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods750.00%
▷ Protected methods00.00%
▷ Private methods750.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin