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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.37ms] Passed 4 tests
Server-side resources used by Order Manager
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.91 ▲2.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 62.98 ▲7.50 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.90 ▼7.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.28 ▼4.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.74 ▲4.72 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Order Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.08 | 1.70 ▼0.14 | 43.93 ▼2.47 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.13 | 112.74 ▼26.61 | 40.65 ▼10.61 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 1.97 ▼0.08 | 38.32 ▼5.61 | 35.81 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,519 ▼9 | 22.98 ▼0.07 | 647.48 ▼30.69 | 57.70 ▲2.49 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▲0.02 | 94.67 ▼3.98 | 40.49 ▼2.41 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/order-manager/uninstall.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Handler' not found in wp-content/plugins/order-manager/includes/class-ordermanager-ajax.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function OrderManager_Autoloader\\plugin_dir_path() in wp-content/plugins/order-manager/includes/autoloader.php:34
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/order-manager/includes/abstract-ordermanager-walker.php:22
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Walker' not found in wp-content/plugins/order-manager/includes/class-ordermanager-post-walker.php:22
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Handler' not found in wp-content/plugins/order-manager/includes/class-ordermanager-documenter.php:23
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Handler' not found in wp-content/plugins/order-manager/includes/class-ordermanager-system.php:23
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Walker' not found in wp-content/plugins/order-manager/includes/class-ordermanager-term-walker.php:22
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Handler' not found in wp-content/plugins/order-manager/includes/class-ordermanager-installer.php:23
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Handler' not found in wp-content/plugins/order-manager/includes/class-ordermanager-manager.php:23
- > PHP Fatal error
Uncaught Error: Class 'OrderManager\\Handler' not found in wp-content/plugins/order-manager/includes/class-ordermanager-backend.php:23
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: order manager, term order, sort posts, order, sort...
order-manager/order-manager.php Passed 13 tests
The entry point to "Order Manager" version 1.0.0 is a PHP file that has certain tags in its header comment area
39 characters long description:
Adds order controls for posts and terms
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
There were no executable files found in this plugin2,231 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 300 | 1,338 | 938 |
JavaScript | 4 | 139 | 90 | 721 |
JSON | 1 | 0 | 0 | 518 |
Sass | 1 | 8 | 0 | 53 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 12 | 100.00% |
Methods | 66 | |
▷ Static methods | 59 | 89.39% |
▷ Public methods | 63 | 95.45% |
▷ Protected methods | 2 | 3.03% |
▷ Private methods | 1 | 1.52% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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