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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.43ms] Passed 4 tests
Analyzing server-side resources used by Missing Menu Items
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.53 ▲7.64 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.86 ▼13.98 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.53 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.43 ▼10.67 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.64 ▲2.83 |
Navigation Menu /wp-admin/edit.php?post_type=wp_navigation | 3.29 | 33.92 |
Template Parts /wp-admin/site-editor.php?postType=wp_template_part | 3.14 | 24.20 |
Reusable Blocks /wp-admin/edit.php?post_type=wp_block | 3.30 | 36.48 |
Templates /wp-admin/site-editor.php?postType=wp_template | 3.14 | 28.40 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Missing Menu Items
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.29 ▼1.10 | 1.64 ▼0.13 | 42.67 ▲0.02 |
Dashboard /wp-admin | 2,222 ▲31 | 4.86 ▼1.02 | 111.64 ▲3.11 | 41.97 ▲1.59 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▼0.01 | 37.26 ▼0.65 | 32.72 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 19.53 ▼3.93 | 646.45 ▼25.13 | 55.06 ▼1.54 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.24 ▲0.02 | 95.15 ▼6.66 | 41.72 ▼4.55 |
Navigation Menu /wp-admin/edit.php?post_type=wp_navigation | 1,051 | 1.97 | 33.02 | 29.66 |
Template Parts /wp-admin/site-editor.php?postType=wp_template_part | 28 | 0.44 | 0.07 | 3.11 |
Reusable Blocks /wp-admin/edit.php?post_type=wp_block | 1,135 | 6.67 | 139.91 | 30.52 |
Templates /wp-admin/site-editor.php?postType=wp_template | 28 | 0.44 | 0.06 | 3.90 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/missing-menu-items/ea-missing-menu-items.php:90
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/site-editor.php?postType=wp_template_part
- > Network (severe)
wp-admin/site-editor.php?postType=wp_template_part - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Network (severe)
wp-admin/site-editor.php?postType=wp_template - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
missing-menu-items/ea-missing-menu-items.php 85% from 13 tests
"Missing Menu Items" version 1.2.3'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: Name the main plugin file the same as the plugin slug ("missing-menu-items.php" instead of "ea-missing-menu-items.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.9" instead of "6.0")
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
Everything looks great! No dangerous files found in this plugin50 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 38 | 49 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.97MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-1.png | 53.35KB | 15.87KB | ▼ 70.26% |
.wordpress-org/icon-256x256.png | 6.82KB | 3.18KB | ▼ 53.44% |
.wordpress-org/icon-128x128.png | 3.14KB | 1.56KB | ▼ 50.23% |
.wordpress-org/screenshot-3.png | 254.49KB | 67.99KB | ▼ 73.28% |
.wordpress-org/screenshot-5.png | 142.66KB | 31.86KB | ▼ 77.67% |