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.10MB] [CPU: ▼0.91ms] Passed 4 tests
Analyzing server-side resources used by WP Order By
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.21 ▼3.33 |
Dashboard /wp-admin | 3.42 ▲0.11 | 49.33 ▲0.44 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.31 ▲1.54 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 101.34 ▼1.45 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.87 ▲0.72 |
Order By /wp-admin/edit.php?page=wpob-settings-post | 3.33 | 37.12 |
Order By /wp-admin/edit.php?post_type=attachment&page=wpob-settings-attachment | 3.33 | 37.37 |
Order By /wp-admin/edit.php?post_type=page&page=wpob-settings-page | 3.33 | 32.93 |
WP Order By Settings /wp-admin/options-general.php?page=wpob-settings-wpob_general | 3.33 | 39.42 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Order By
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.24 ▼0.11 | 1.64 ▲0.01 | 42.26 ▲0.38 |
Dashboard /wp-admin | 2,210 ▲36 | 5.63 ▲0.07 | 88.08 ▼5.08 | 43.20 ▲0.53 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.00 ▲0.02 | 42.84 ▲1.27 | 35.22 ▼5.75 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.34 ▲0.28 | 611.40 ▼80.06 | 60.66 ▲2.89 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.17 ▲0.01 | 101.55 ▼0.02 | 47.39 ▼1.19 |
Order By /wp-admin/edit.php?page=wpob-settings-post | 1,021 | 1.69 | 24.87 | 34.67 |
Order By /wp-admin/edit.php?post_type=attachment&page=wpob-settings-attachment | 1,013 | 1.68 | 28.23 | 33.35 |
Order By /wp-admin/edit.php?post_type=page&page=wpob-settings-page | 1,021 | 1.69 | 25.73 | 30.61 |
WP Order By Settings /wp-admin/options-general.php?page=wpob-settings-wpob_general | 1,018 | 1.69 | 25.12 | 32.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-order-by/wp-order-by.php
- 50× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-order-by/views/form_elements.php on line 14
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-order-by/views/form_elements.php on line 35
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-order-by/views/form_elements.php on line 20
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-order-by/views/form_elements.php on line 30
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-order-by/views/form_elements.php on line 4
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-order-by/views/form_elements.php on line 30
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-order-by/views/form_elements.php on line 25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-order-by/views/form_elements.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-order-by/views/form_elements.php:51
- > PHP Notice
Undefined variable: args in wp-content/plugins/wp-order-by/views/form_elements.php on line 14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
wp-order-by/wp-order-by.php Passed 13 tests
The primary PHP file in "WP Order By" version 1.4.2 is used by WordPress to initiate all plugin functionality
54 characters long description:
A wordpress post, post types and pages ordering plugin
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
No dangerous file extensions were detected563 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 100 | 68 | 461 |
JavaScript | 1 | 14 | 11 | 74 |
CSS | 1 | 1 | 0 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 5 | 21.74% |
▷ Public methods | 16 | 69.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 30.43% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin