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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.58ms] Passed 4 tests
A check of server-side resources used by Sortable Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 35.16 ▼9.09 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.08 ▼2.68 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.61 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 83.20 ▼9.62 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.19 ▲3.04 |
Sortable Posts /wp-admin/options-general.php?page=sortable_posts_settings | 3.30 | 32.45 |
Server storage [IO: ▲0.05MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sortable Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 13.27 ▼1.11 | 1.74 ▼0.32 | 38.55 ▼4.46 |
Dashboard /wp-admin | 2,227 ▲39 | 4.88 ▼0.03 | 105.36 ▲5.57 | 38.86 ▼5.64 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.29 ▲0.25 | 41.56 ▲5.02 | 34.59 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 17.36 ▼5.46 | 675.78 ▲14.17 | 58.80 ▲5.11 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.30 ▲0.11 | 99.58 ▲1.01 | 40.37 ▼0.78 |
Sortable Posts /wp-admin/options-general.php?page=sortable_posts_settings | 888 | 1.93 | 25.62 | 28.70 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sortable-posts/includes/class-sp-api.php:238
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sortable-posts/includes/class-sp-settings.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sortable-posts/includes/class-sp-taxonomies.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
sortable-posts/sortable-posts.php Passed 13 tests
The main file in "Sortable Posts" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
121 characters long description:
Sortable Posts is a small plugin for WordPress that adds sortability to the post edit screen of any post type you choose.
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
No dangerous file extensions were detected711 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 164 | 398 | 489 |
CSS | 1 | 4 | 3 | 86 |
Markdown | 1 | 18 | 0 | 73 |
JavaScript | 1 | 18 | 11 | 63 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 34 | 91.89% |
▷ Protected methods | 3 | 8.11% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
There are no PNG files in this plugin