Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼306.26ms] Passed 4 tests
A check of server-side resources used by Add To Menus Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 51.45 ▲2.79 |
Dashboard /wp-admin | 3.56 ▲0.15 | 35.60 ▼2.55 |
Posts /wp-admin/edit.php | 3.78 ▲0.14 | 38.93 ▲0.48 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.05 | 96.38 ▼1,220.98 |
Media Library /wp-admin/upload.php | 3.43 ▲0.14 | 26.26 ▼2.00 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add To Menus Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲17 | 15.82 ▲0.15 | 5.65 ▼0.55 | 2.22 ▼0.59 |
Dashboard /wp-admin | 2,901 ▲47 | 6.15 ▼0.00 | 115.54 ▼19.22 | 153.37 ▼6.08 |
Posts /wp-admin/edit.php | 2,702 ▲11 | 3.24 ▼0.13 | 62.73 ▼1.10 | 140.50 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,693 ▲32 | 19.20 ▲3.06 | 388.26 ▼11.19 | 177.95 ▲19.00 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.59 ▲0.05 | 142.03 ▼7.09 | 186.43 ▲0.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-to-menus-lite/index.php:18
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/add-to-menus-lite/custom_walker.php:10
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/add-to-menus-lite/class.Walker_Nav_Menu_Edit.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in add-to-menus-lite/assets to your readme.txt
add-to-menus-lite/index.php 85% from 13 tests
"Add To Menus Lite" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-to-menus-lite.php" instead of "index.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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,103 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 351 | 166 | 797 |
CSS | 1 | 0 | 1 | 170 |
JavaScript | 2 | 68 | 0 | 136 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 33.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin