Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▲3.05ms] Passed 4 tests
Analyzing server-side resources used by WP Sort Order
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.38 | 50.91 ▲9.19 |
Dashboard /wp-admin | 3.50 ▲0.20 | 54.93 ▲4.23 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 54.51 ▲2.13 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 93.94 ▲3.08 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.46 ▲2.74 |
WP Sort Order /wp-admin/options-general.php?page=wpso-settings | 3.44 | 40.62 |
Server storage [IO: ▲4.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wpso_activation |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Sort Order
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲127 | 13.60 ▼1.18 | 10.16 ▲7.41 | 43.39 ▼0.98 |
Dashboard /wp-admin | 2,216 ▲13 | 4.86 ▼0.94 | 108.13 ▲9.61 | 39.87 ▲1.19 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.01 | 41.18 ▲5.56 | 35.18 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 23.51 ▲5.02 | 668.32 ▲35.80 | 63.05 ▼2.54 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▲0.00 | 99.48 ▼6.73 | 39.90 ▼3.83 |
WP Sort Order /wp-admin/options-general.php?page=wpso-settings | 1,584 | 10.87 | 302.94 | 66.15 |
Uninstaller [IO: ✅] [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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- wpso_activation
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: taxonomy order, plugins order, user order, post order
wp-sort-order/index.php 85% from 13 tests
The main PHP file in "WP Sort Order" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-sort-order.php" instead of "index.php")
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 detected11,164 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,546 |
PHP | 4 | 399 | 135 | 1,089 |
CSS | 4 | 27 | 15 | 199 |
JavaScript | 5 | 45 | 19 | 186 |
PO File | 3 | 48 | 48 | 144 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 176.00 |
▷ Minimum class complexity | 176.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 7.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu-over.png | 0.61KB | 0.78KB | 0.00% |
images/bamboo.png | 22.96KB | 8.49KB | ▼ 63.03% |
images/check.png | 1.60KB | 1.45KB | ▼ 9.63% |
images/menu.png | 0.59KB | 0.79KB | 0.00% |
images/uncheck.png | 1.60KB | 1.46KB | ▼ 9.08% |