Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.79ms] Passed 4 tests
Analyzing server-side resources used by Post Terms Order - per Post based
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.95 ▲9.42 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.16 ▼7.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.42 ▼9.24 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.39 ▼9.96 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.73 ▼0.65 |
Post Terms Order /wp-admin/options-general.php?page=pto_interface | 3.24 | 33.41 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Post Terms Order - per Post based
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 14.84 ▲0.26 | 1.67 ▲0.03 | 41.06 ▼1.44 |
Dashboard /wp-admin | 2,214 ▲29 | 5.86 ▲0.97 | 101.59 ▼10.43 | 78.39 ▲38.95 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 1.98 ▼0.02 | 39.24 ▼2.91 | 34.19 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.02 ▲5.47 | 765.15 ▲66.65 | 61.20 ▲6.13 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.13 ▼0.04 | 107.16 ▼5.80 | 46.30 ▲1.95 |
Post Terms Order /wp-admin/options-general.php?page=pto_interface | 1,103 | 2.09 | 34.85 | 32.46 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/post-terms-order/include/pto_walkers.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-terms-order/include/functions.php:155
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/post-terms-order/post-terms-order.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).)
post-terms-order/post-terms-order.php Passed 13 tests
The main PHP file in "Post Terms Order - per Post based" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Sort Taxonomy Terms per Post based using a Drag and Drop Sortable JavaScript capability
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 detected1,855 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 370 | 213 | 860 |
JavaScript | 4 | 156 | 113 | 725 |
CSS | 2 | 25 | 2 | 138 |
PO File | 2 | 44 | 52 | 132 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/help.png | 0.30KB | 0.32KB | 0.00% |
images/menu-icon.png | 3.75KB | 0.93KB | ▼ 75.20% |
images/gray-grad.png | 0.21KB | 0.18KB | ▼ 11.74% |