Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.67ms] Passed 4 tests
A check of server-side resources used by ReOrder Posts within Categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.13 ▼3.44 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.25 ▼3.32 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 42.95 ▼2.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.37 ▼1.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.44 ▼1.74 |
Server storage [IO: ▲0.25MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
_rpwc2_settings |
_rpwc2_sort_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ReOrder Posts within Categories
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.77 ▼0.78 | 1.80 ▼0.04 | 47.29 ▼1.52 |
Dashboard /wp-admin | 2,221 ▲33 | 5.86 ▲0.07 | 110.33 ▼2.82 | 43.75 ▼1.28 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▲0.04 | 35.17 ▼2.80 | 34.64 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,547 ▲27 | 23.33 ▼0.05 | 592.62 ▼5.90 | 53.86 ▲2.14 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.17 ▼0.04 | 92.57 ▼4.06 | 41.02 ▼1.15 |
ReOrder Post /wp-admin/class-reorder-post-within-categories-admin.php | 26 | 0.44 | 0.14 | 16.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- _rpwc2_sort_options
- widget_recent-posts
- _rpwc2_settings
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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× PHP files output text when accessed directly:
- > /wp-content/plugins/reorder-post-within-categories/public/partials/reorder-post-within-categories-public-display.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: post_type_detail in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php:20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-settings-display.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-notice-display.php:5
- > PHP Notice
Undefined variable: settingsOptions in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/reorder-post-within-categories/admin/partials/reorder-post-within-categories-admin-display.php on line 14
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/class-reorder-post-within-categories-admin.php
- > Network (severe)
wp-admin/class-reorder-post-within-categories-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== reorder-post-within-categories ===
) - Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
reorder-post-within-categories/reorder-post-within-categories.php Passed 13 tests
"ReOrder Posts within Categories" version 2.14.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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
Success! There were no dangerous files found in this plugin2,294 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 159 | 977 | 1,597 |
JavaScript | 4 | 30 | 50 | 394 |
PO File | 1 | 40 | 40 | 139 |
CSS | 3 | 3 | 8 | 104 |
Markdown | 1 | 20 | 0 | 60 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 37.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 8 | 12.12% |
▷ Public methods | 45 | 68.18% |
▷ Protected methods | 9 | 13.64% |
▷ Private methods | 12 | 18.18% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 7.47KB | 3.95KB | ▼ 47.15% |