Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.22ms] Passed 4 tests
Server-side resources used by Simple Page Ordering
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 35.42 ▼1.70 |
Dashboard /wp-admin | 3.42 ▲0.08 | 45.18 ▼14.95 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 53.84 ▲5.34 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 88.85 ▼10.27 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.92 ▼1.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Page Ordering
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.54 ▲0.27 | 1.62 ▲0.04 | 37.83 ▼2.76 |
Dashboard /wp-admin | 2,195 ▲21 | 5.60 ▼0.05 | 91.28 ▼8.77 | 41.03 ▲2.87 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.96 ▼0.03 | 40.32 ▼1.99 | 36.98 ▼8.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.35 ▼0.23 | 688.05 ▲7.21 | 53.89 ▼6.31 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.04 | 100.82 ▼6.63 | 41.99 ▼4.35 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function SimplePageOrdering\\add_action() in wp-content/plugins/simple-page-ordering/class-simple-page-ordering.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function SimplePageOrdering\\add_action() in wp-content/plugins/simple-page-ordering/class-simple-page-ordering.php:48
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #2 in simple-page-ordering/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
simple-page-ordering/simple-page-ordering.php 92% from 13 tests
The entry point to "Simple Page Ordering" version 2.6.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin527 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 120 | 200 | 512 |
Bourne Shell | 1 | 5 | 4 | 13 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 46.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 16 | 64.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin