Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.32ms] Passed 4 tests
A check of server-side resources used by Menu Caching
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.68 ▼6.23 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.48 ▼2.45 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 56.47 ▲3.73 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.45 ▼31.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.51 ▼1.29 |
Menu Caching /wp-admin/tools.php?page=menu-caching | 3.22 | 33.20 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Menu Caching: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.73 ▲0.45 | 1.74 ▼0.01 | 41.26 ▼2.01 |
Dashboard /wp-admin | 2,202 ▲28 | 5.58 ▼0.09 | 85.69 ▼4.64 | 39.68 ▼1.50 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 33.78 ▼5.54 | 34.89 ▼5.34 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.66 ▲0.61 | 663.84 ▼6.49 | 61.71 ▲7.81 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▲0.13 | 115.79 ▲3.46 | 48.05 ▼1.58 |
Menu Caching /wp-admin/tools.php?page=menu-caching | 813 | 2.04 | 24.82 | 29.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wordpress menu, caching, menu cache, speed up menu, menu caching
menu-caching/menu-caching.php Passed 13 tests
The entry point to "Menu Caching" version 1.1.2 is a PHP file that has certain tags in its header comment area
64 characters long description:
This plugin caches WordPress menus to improve page loading time.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected477 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 145 | 403 | 352 |
CSS | 1 | 11 | 0 | 69 |
JavaScript | 1 | 10 | 0 | 56 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin