Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.45ms] Passed 4 tests
An overview of server-side resources used by Add Descendants As Submenu Items
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.86 ▲0.13 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.42 ▼4.89 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.08 ▼6.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.50 ▼10.52 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.00 ▲0.68 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Descendants As Submenu Items
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.17 ▼1.21 | 5.36 ▲3.56 | 44.99 ▲0.80 |
Dashboard /wp-admin | 2,206 ▲21 | 4.85 ▼1.01 | 111.09 ▲9.34 | 39.96 ▼1.60 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▲0.01 | 40.33 ▲3.17 | 33.99 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,534 ▼4 | 23.15 ▼0.12 | 570.98 ▼86.60 | 55.14 ▲7.46 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.29 ▲0.08 | 99.26 ▲2.79 | 43.30 ▼1.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/add-descendants-as-submenu-items/add-descendants-as-submenu-items.php:98
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: nav menu, children, descendants, menu
add-descendants-as-submenu-items/add-descendants-as-submenu-items.php 92% from 13 tests
Analyzing the main PHP file in "Add Descendants As Submenu Items" version 1.2.2
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin217 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 74 | 140 | 178 |
JavaScript | 1 | 8 | 9 | 39 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin