Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/term-menu-order/term-menu-order.php+63
Non-static method NS_TMO_Plugin::get_instance() should not be called statically
Server metrics [RAM: ▼1.91MB] [CPU: ▼57.15ms] Passed 4 tests
Analyzing server-side resources used by Term Menu Order
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.78 ▼37.21 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.90 ▼44.28 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 8.27 ▼43.31 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.65 ▼103.79 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.64 ▼31.99 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Term Menu Order: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.36 ▲0.01 | 1.68 ▼0.16 | 43.11 ▲1.38 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.09 | 93.50 ▲2.84 | 42.43 ▲0.63 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.01 | 38.82 ▼5.21 | 35.82 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.99 ▼0.27 | 683.83 ▲54.52 | 52.53 ▼12.81 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.24 ▲0.06 | 96.94 ▼6.33 | 43.42 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/term-menu-order/term-menu-order.php+63
Non-static method NS_TMO_Plugin::get_instance() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/term-menu-order/lib/ns_tmo_plugin.class.php:21
- > PHP Fatal error
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 ('menu_order' available in Quick Edit.), #2 ('menu_order' available when adding a new term.), #3 ('menu_order' available when editing a term.)
term-menu-order/term-menu-order.php Passed 13 tests
The main PHP file in "Term Menu Order" ver. 0.4 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
Creates a 'menu_order' column to specify term order, allowing theme and plugin developers to sort term by menu order.
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
Success! There were no dangerous files found in this plugin201 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 101 | 33 | 111 |
JavaScript | 2 | 29 | 2 | 90 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
3 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 70.61KB | 25.68KB | ▼ 63.63% |
screenshot-3.png | 45.89KB | 16.38KB | ▼ 64.31% |
screenshot-2.png | 97.00KB | 35.68KB | ▼ 63.21% |