Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼13.75ms] Passed 4 tests
Server-side resources used by Category Order and Taxonomy Terms Order
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.85 ▼4.59 |
Dashboard /wp-admin | 3.41 ▲0.06 | 47.56 ▼20.72 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.19 ▼9.70 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.97 ▼19.97 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.72 ▲4.61 |
Taxonomy Order /wp-admin/edit.php?page=to-interface-post | 3.31 | 35.43 |
Taxonomy Terms Order /wp-admin/options-general.php?page=to-options | 3.30 | 36.40 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Category Order and Taxonomy Terms Order: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.75 ▲0.15 | 1.69 ▲0.04 | 39.87 ▼2.69 |
Dashboard /wp-admin | 2,196 ▲16 | 5.55 ▼0.12 | 86.58 ▼5.60 | 69.22 ▲27.96 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.07 ▲0.07 | 35.44 ▼7.16 | 33.08 ▼3.72 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.09 ▼0.11 | 712.63 ▲21.80 | 54.47 ▼4.04 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.11 ▼0.11 | 98.70 ▼14.27 | 73.72 ▲25.27 |
Taxonomy Order /wp-admin/edit.php?page=to-interface-post | 870 | 2.04 | 30.10 | 28.45 |
Taxonomy Terms Order /wp-admin/options-general.php?page=to-options | 964 | 1.78 | 24.99 | 28.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/taxonomy-terms-order/taxonomy-terms-order.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Category Order Interface.), #2 (Multiple Taxonomies Interface.)
taxonomy-terms-order/taxonomy-terms-order.php Passed 13 tests
The principal PHP file in "Category Order and Taxonomy Terms Order" v. 1.7.9 is loaded by WordPress automatically on each request
135 characters long description:
Order Categories and all custom taxonomies terms (hierarchically) and child terms using a Drag and Drop Sortable javascript capability.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected679 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 190 | 41 | 529 |
PO File | 1 | 31 | 32 | 85 |
CSS | 1 | 9 | 0 | 31 |
JSON | 1 | 0 | 0 | 17 |
JavaScript | 1 | 2 | 1 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu-icon.png | 3.75KB | 0.93KB | ▼ 75.20% |
screenshot-1.png | 27.20KB | 16.23KB | ▼ 40.34% |
screenshot-2.png | 32.61KB | 19.51KB | ▼ 40.16% |