Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.50ms] Passed 4 tests
Analyzing server-side resources used by Anything Order by Terms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.86 ▼1.15 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.25 ▲1.26 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 42.66 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.14 ▼4.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.84 ▼3.73 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Anything Order by Terms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.28 | 1.79 ▲0.22 | 43.21 ▲1.36 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.03 | 99.52 ▼6.08 | 41.49 ▲3.24 |
Posts /wp-admin/edit.php | 2,131 ▲45 | 2.32 ▲0.28 | 38.17 ▲2.67 | 34.62 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.39 ▲0.04 | 726.76 ▲92.18 | 55.25 ▲6.88 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.11 | 100.72 ▼5.04 | 43.01 ▼2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/anything-order-by-terms/modules/base/compatibility.php:18
- > PHP Fatal error
Uncaught Error: Class 'Anything_Order_Base' not found in wp-content/plugins/anything-order-by-terms/modules/taxonomy/class.php:8
- > PHP Fatal error
Uncaught Error: Class 'Anything_Order_Base' not found in wp-content/plugins/anything-order-by-terms/modules/post/class.php:8
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
anything-order-by-terms/anything-order.php 85% from 13 tests
This is the main PHP file of "Anything Order by Terms" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("anything-order-by-terms.php" instead of "anything-order.php")
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 detected759 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 144 | 358 | 402 |
JavaScript | 1 | 42 | 0 | 173 |
CSS | 1 | 32 | 2 | 128 |
PO File | 2 | 8 | 8 | 56 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 20 | 52.63% |
▷ Protected methods | 18 | 47.37% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin