Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.74MB] [CPU: ▼194.46ms] Passed 4 tests
Analyzing server-side resources used by Advanced Order
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼0.95 | 13.06 ▼23.09 |
Dashboard /wp-admin | 1.90 ▼1.15 | 6.34 ▼48.29 |
Posts /wp-admin/edit.php | 1.91 ▼1.20 | 6.68 ▼40.82 |
Add New Post /wp-admin/post-new.php | 1.91 ▼3.53 | 6.21 ▼656.85 |
Media Library /wp-admin/upload.php | 1.91 ▼1.10 | 6.24 ▼31.88 |
Advanced Order /wp-admin/options-general.php?page=advanced-order | 1.91 | 6.32 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Order
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,749 ▲177 | 15.90 ▼0.05 | 9.11 ▼2.41 | 47.50 ▲1.34 |
Dashboard /wp-admin | 3,040 ▲106 | 6.20 ▲0.07 | 151.25 ▼7.15 | 121.26 ▲0.52 |
Posts /wp-admin/edit.php | 2,821 ▲82 | 2.92 ▲0.20 | 80.41 ▲6.00 | 97.00 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,954 ▲444 | 15.94 ▼2.68 | 450.17 ▲33.58 | 112.80 ▲8.85 |
Media Library /wp-admin/upload.php | 1,878 ▲71 | 5.00 ▼0.02 | 155.93 ▲4.34 | 126.96 ▲11.05 |
Advanced Order /wp-admin/options-general.php?page=advanced-order | 1,130 | 2.36 | 60.97 | 73.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=advanced-order
- > User notice in wp-includes/functions.php+5663
register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- > GET request to /wp-admin/options-general.php?page=advanced-order
- > Notice in wp-content/plugins/advanced-order/options.php+68
Undefined variable: _info_update_terms
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advanced-order
- > Warning in wp-content/plugins/advanced-order/options.php+68
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/options-general.php?page=advanced-order
- > Notice in wp-content/plugins/advanced-order/options.php+68
Undefined variable: _info_update_posts
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-order/options.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Управляющий елемент сортировки), #2 (Демонстрация настроек)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== advanced-order ===
)
advanced-order/advanced_order.php 85% from 13 tests
"Advanced Order" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-order.php" instead of "advanced_order.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin599 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 114 | 218 | 466 |
JavaScript | 1 | 4 | 3 | 90 |
CSS | 1 | 13 | 0 | 43 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 67.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 32.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin