Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.52ms] Passed 4 tests
Analyzing server-side resources used by Simple Custom Post Order
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.99 ▼7.83 |
Dashboard /wp-admin | 3.44 ▲0.13 | 51.33 ▼2.04 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 58.07 ▲6.99 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 101.96 ▲0.48 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 42.19 ▲3.30 |
SCPOrder /wp-admin/options-general.php?page=scporder-settings | 3.36 | 35.31 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
simple-rate-time |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
scporder_install |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Custom Post Order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.38 ▼0.00 | 2.04 ▲0.57 | 39.97 ▼3.14 |
Dashboard /wp-admin | 2,226 ▲46 | 5.54 ▼0.05 | 91.52 ▲0.39 | 90.73 ▲47.93 |
Posts /wp-admin/edit.php | 2,138 ▲41 | 2.00 ▼0.03 | 41.23 ▲5.42 | 38.53 ▲5.85 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 22.97 ▼0.44 | 768.03 ▲147.57 | 51.50 ▼5.12 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.23 ▲0.01 | 102.85 ▲1.31 | 80.95 ▲34.93 |
SCPOrder /wp-admin/options-general.php?page=scporder-settings | 1,167 | 2.00 | 25.13 | 29.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- simple-rate-time
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- 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)
Even though everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/simple-custom-post-order/class-simple-review.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-custom-post-order/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-custom-post-order/simple-custom-post-order.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Order Custom Posts), #2 (Order Posts), #3 (Settings)
- Requires php: Version format is invalid
simple-custom-post-order/simple-custom-post-order.php 92% from 13 tests
The primary PHP file in "Simple Custom Post Order" version 2.5.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "7.2.5 or higher")
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
There were no executable files found in this plugin1,268 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 270 | 52 | 1,101 |
JavaScript | 4 | 24 | 20 | 98 |
PO File | 1 | 19 | 21 | 69 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 66.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.57% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 1.22MB with 0.83MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 358.82KB | 107.46KB | ▼ 70.05% |
screenshot-2.png | 551.93KB | 174.38KB | ▼ 68.41% |
screenshot-1.png | 342.27KB | 116.87KB | ▼ 65.85% |