Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼301.14ms] Passed 4 tests
Analyzing server-side resources used by Adjust Admin Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 59.15 ▼2.55 |
Dashboard /wp-admin | 3.47 ▲0.06 | 40.75 ▼5.74 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 60.65 ▲7.22 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.04 | 100.31 ▼1,203.48 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 50.77 ▲26.33 |
Adjust Categories /wp-admin/options-general.php?page=adjust_admin_categories | 3.36 | 24.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
aac_options |
Browser metrics Passed 4 tests
A check of browser resources used by Adjust Admin Categories
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲33 | 15.27 ▼0.37 | 6.14 ▼0.30 | 2.32 ▼0.39 |
Dashboard /wp-admin | 2,897 ▲37 | 6.15 ▼0.09 | 118.83 ▼5.60 | 159.10 ▼6.56 |
Posts /wp-admin/edit.php | 2,665 ▼29 | 3.24 ▲0.00 | 73.94 ▼12.10 | 139.80 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,664 ▲4 | 16.10 ▼0.91 | 428.51 ▼56.55 | 179.36 ▲31.02 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.50 ▼0.00 | 153.08 ▲11.86 | 205.24 ▲26.70 |
Adjust Categories /wp-admin/options-general.php?page=adjust_admin_categories | 2,010 | 2.63 | 60.56 | 194.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(AAC_PLUGIN_DIR/admin/admin-functions.php): failed to open stream: No such file or directory in wp-content/plugins/adjust-admin-categories/admin/admin.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/adjust-admin-categories/includes/class-category-checklist.php on line 2
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/adjust-admin-categories/includes/class-category-checklist.php on line 2
- > PHP Warning
Use of undefined constant AAC_PLUGIN_DIR - assumed 'AAC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/adjust-admin-categories/admin/admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/adjust-admin-categories/uninstall.php:10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/adjust-admin-categories/includes/class-category-checklist.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/adjust-admin-categories/adjust-admin-categories.php:13
- > PHP Fatal error
require_once(): Failed opening required 'AAC_PLUGIN_DIR/admin/admin-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/adjust-admin-categories/admin/admin.php on line 2
- > PHP Warning
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 93% 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:
- Requires at least: Invalid plugin version format
adjust-admin-categories/adjust-admin-categories.php 92% from 13 tests
This is the main PHP file of "Adjust Admin Categories" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected480 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 67 | 80 | 367 |
PO File | 1 | 11 | 1 | 40 |
JavaScript | 2 | 17 | 10 | 37 |
CSS | 1 | 1 | 0 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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