Benchmarks
Plugin footprint Passed 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼156.59ms] Passed 4 tests
This is a short check of server-side resources used by Post Status Menu Items
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 41.58 ▲11.51 |
Dashboard /wp-admin | 3.12 ▲0.06 | 37.16 ▼13.94 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 49.01 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 100.82 ▼612.86 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 40.08 ▲1.47 |
Published (1) /wp-admin/edit.php?post_status=publish&post_type=post | 3.17 | 48.96 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
psmi_options |
Browser metrics Passed 4 tests
Checking browser requirements for Post Status Menu Items
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.86 ▲0.14 | 12.18 ▲0.08 | 49.77 ▼2.00 |
Dashboard /wp-admin | 3,013 ▲82 | 5.96 ▼0.29 | 141.53 ▼10.81 | 118.02 ▲3.64 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.71 ▼0.00 | 65.22 ▼8.88 | 95.27 ▲6.57 |
Add New Post /wp-admin/post-new.php | 1,503 ▼1 | 18.86 ▲0.34 | 393.86 ▼32.99 | 119.27 ▲3.30 |
Media Library /wp-admin/upload.php | 1,814 ▼8 | 5.03 ▲0.02 | 170.31 ▲8.21 | 118.89 ▼3.80 |
Published (1) /wp-admin/edit.php?post_status=publish&post_type=post | 2,748 | 2.72 | 67.34 | 90.84 |
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 completely, with no zombie files or tables
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-status-menu-items/cms_post_status_menu.php:287
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: admin menu, wp admin, drafts, post status, post statuses
post-status-menu-items/cms_post_status_menu.php 92% from 13 tests
"Post Status Menu Items" version 1.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-status-menu-items.php" instead of "cms_post_status_menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin344 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 105 | 146 | 274 |
CSS | 1 | 8 | 26 | 70 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin