Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼149.26ms] Passed 4 tests
A check of server-side resources used by Simple Posts Order
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.13 | 33.83 ▲2.31 |
Dashboard /wp-admin | 3.19 ▲0.14 | 37.61 ▼9.02 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 44.82 ▲3.79 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 87.70 ▼581.65 |
Media Library /wp-admin/upload.php | 3.13 ▲0.12 | 31.41 ▼8.66 |
Simple Posts Order /wp-admin/options-general.php?page=SimplePostsOrder | 3.10 | 28.31 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_simplepostsorderwidgetitem |
simple_posts_order |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Posts Order
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.93 ▲0.14 | 8.39 ▼2.80 | 46.05 ▼1.26 |
Dashboard /wp-admin | 2,978 ▲44 | 5.94 ▼0.04 | 134.53 ▼11.89 | 112.41 ▲3.56 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.01 | 62.78 ▲0.29 | 95.07 ▼5.73 |
Add New Post /wp-admin/post-new.php | 1,503 ▼169 | 18.54 ▼0.32 | 378.66 ▼2.41 | 111.41 ▼1.42 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.02 | 153.78 ▼0.56 | 108.31 ▼8.13 |
Simple Posts Order /wp-admin/options-general.php?page=SimplePostsOrder | 1,466 | 2.08 | 61.24 | 82.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_simplepostsorderwidgetitem
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
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-order/lib/class-simplepostsorder.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-order/lib/class-simplepostsorderadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-order/lib/class-simplepostsorderwidgetitem.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-order/lib/class-simplepostsorderadmin.php:37
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: widget, post, shortcode, posts, order...
simple-posts-order/simplepostsorder.php 92% from 13 tests
The principal PHP file in "Simple Posts Order" v. 1.16 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-posts-order.php" instead of "simplepostsorder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin669 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 113 | 204 | 669 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 7.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected