Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.93ms] Passed 4 tests
This is a short check of server-side resources used by D3 Register Menus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.49 ▲0.81 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.11 ▼4.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.95 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.61 ▼9.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.38 ▲1.57 |
D3 Register Menus /wp-admin/admin.php?page=d3-register-menus | 3.21 | 30.02 |
D3 Suite /wp-admin/admin.php?page=d3-suite | 3.21 | 30.59 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for D3 Register Menus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.17 ▼0.11 | 1.58 ▼0.11 | 42.13 ▲2.94 |
Dashboard /wp-admin | 2,222 ▲45 | 5.56 ▼0.15 | 88.72 ▼5.72 | 37.58 ▲2.03 |
Posts /wp-admin/edit.php | 2,087 ▼13 | 2.03 ▲0.06 | 38.09 ▲0.99 | 31.08 ▼7.90 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.08 ▲0.08 | 611.56 ▼10.84 | 66.01 ▲9.78 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.18 ▲0.01 | 112.23 ▲15.40 | 48.18 ▲6.96 |
D3 Register Menus /wp-admin/admin.php?page=d3-register-menus | 839 | 2.16 | 23.69 | 24.76 |
D3 Suite /wp-admin/admin.php?page=d3-suite | 792 | 1.99 | 28.84 | 25.87 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/d3-register-menus/templates/d3-submenu-page-content.php
- > /wp-content/plugins/d3-register-menus/d3-register-menus.php
- > /wp-content/plugins/d3-register-menus/templates/d3-suite-page-content.php
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
2 plugin tags: d3-register-menus, d3
d3-register-menus/d3-register-menus.php Passed 13 tests
The main PHP script in "D3 Register Menus" version 0.1 is automatically included on every request by WordPress
22 characters long description:
Create Menus Locations
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected149 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 22 | 24 | 96 |
PO File | 1 | 19 | 21 | 53 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected