Benchmarks
Plugin footprint Passed 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.03MB] [CPU: ▼139.97ms] Passed 4 tests
Server-side resources used by Global Meta Box Order
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 32.56 ▲8.52 |
Dashboard /wp-admin | 3.09 ▲0.04 | 40.63 ▲3.61 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 46.96 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 86.96 ▼566.31 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 30.53 ▲0.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Global Meta Box Order: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.81 ▲0.31 | 8.21 ▼7.33 | 48.82 ▲2.05 |
Dashboard /wp-admin | 2,970 ▲39 | 5.87 ▼0.08 | 138.60 ▼8.01 | 105.64 ▼2.98 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▼0.01 | 64.24 ▼2.45 | 90.42 ▼6.46 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 18.87 ▲0.42 | 357.52 ▼1.18 | 105.28 ▼4.86 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▲0.03 | 148.98 ▲0.43 | 117.35 ▼10.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function GlobalMetaBoxOrder\\is_admin() in wp-content/plugins/global-meta-box-order/index.php:446
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
global-meta-box-order/index.php 92% from 13 tests
Analyzing the main PHP file in "Global Meta Box Order" version 1.0.3
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("global-meta-box-order.php" instead of "index.php")
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 detected161 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 113 | 182 | 157 |
JavaScript | 1 | 2 | 5 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 15.38% |
▷ Protected methods | 11 | 84.62% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected