Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.89ms] Passed 4 tests
Server-side resources used by Draggable Post Order
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.84 ▼2.67 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.43 ▼0.01 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.05 ▲6.98 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 90.69 ▲1.19 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.48 ▼2.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Draggable Post Order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.19 | 1.73 ▼0.08 | 40.85 ▼5.60 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▲1.01 | 99.78 ▼6.19 | 38.70 ▼6.76 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▼0.12 | 39.12 ▲4.22 | 33.94 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.48 ▲0.38 | 604.17 ▼110.75 | 51.61 ▼1.15 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.20 ▲0.02 | 101.32 ▼3.30 | 45.06 ▲0.47 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/draggable-post-order/draggable-post-order.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
4 plugin tags: post-type, drag, custom-post-type, order
draggable-post-order/draggable-post-order.php Passed 13 tests
This is the main PHP file of "Draggable Post Order" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Drag'n'drop posts to order them
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin790 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 265 | 324 | 724 |
JavaScript | 2 | 5 | 5 | 41 |
Sass | 1 | 4 | 0 | 19 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 29 | 56.86% |
▷ Public methods | 48 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.88% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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