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
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.88ms] Passed 4 tests
A check of server-side resources used by Custom Post Status
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 40.70 ▲2.08 |
Dashboard /wp-admin | 3.57 ▲0.27 | 47.82 ▼2.94 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 45.28 ▲0.22 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 85.01 ▼10.89 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.35 ▲2.21 |
Custom Status Settings /wp-admin/tools.php?page=custom-status-settings | 3.73 | 33.49 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 299 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Status
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.27 ▼1.01 | 1.75 ▼0.10 | 44.34 ▲1.44 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.98 | 113.20 ▼1.98 | 43.28 ▲0.06 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.01 | 33.15 ▼4.12 | 34.46 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.25 ▲4.83 | 671.65 ▲40.36 | 57.58 ▲0.16 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.03 | 99.19 ▲3.26 | 39.94 ▼3.97 |
Custom Status Settings /wp-admin/tools.php?page=custom-status-settings | 777 | 2.05 | 24.14 | 26.04 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=custom-status-settings
- > Notice in wp-content/plugins/custom-post-status/vendor/mustache/mustache/src/Mustache/Parser.php+278
Trying to access array offset on value of type null
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-post-status/vendor/mustache/mustache/bin/build_bootstrap.php
- 169× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/Node/Expression/Binary/And.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/Node/Expression/Test/Null.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/TokenParser/AutoEscape.php:30
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/Node/Set.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/Node/CheckSecurity.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/Node/Flush.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/TokenParser/Do.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig_Sandbox_SecurityError' not found in wp-content/plugins/custom-post-status/vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedFilterError.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/custom-post-status/vendor/mustache/mustache/src/Mustache/Logger/AbstractLogger.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: post status, post, status
custom-post-status/init.php 92% from 13 tests
Analyzing the main PHP file in "Custom Post Status" version 1.1.0
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-post-status.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected14,972 lines of code in 278 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 252 | 3,101 | 7,205 | 13,330 |
C | 1 | 161 | 174 | 792 |
JSON | 8 | 0 | 0 | 382 |
Markdown | 6 | 168 | 0 | 288 |
YAML | 3 | 13 | 1 | 57 |
XML | 2 | 4 | 0 | 38 |
PO File | 1 | 2 | 2 | 20 |
JavaScript | 1 | 0 | 0 | 19 |
Mustache | 1 | 2 | 0 | 17 |
C/C++ Header | 1 | 7 | 13 | 15 |
reStructuredText | 1 | 5 | 1 | 9 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 7.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 27 | |
Traits | 0 | |
Classes | 216 | |
▷ Abstract classes | 22 | 10.19% |
▷ Concrete classes | 194 | 89.81% |
▷ Final classes | 3 | 1.55% |
Methods | 1,191 | |
▷ Static methods | 45 | 3.78% |
▷ Public methods | 984 | 82.62% |
▷ Protected methods | 133 | 11.17% |
▷ Private methods | 74 | 6.21% |
Functions | 54 | |
▷ Named functions | 51 | 94.44% |
▷ Anonymous functions | 3 | 5.56% |
Constants | 106 | |
▷ Global constants | 1 | 0.94% |
▷ Class constants | 105 | 99.06% |
▷ Public constants | 105 | 100.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 were not PNG files found in your plugin