Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▲9.94ms] Passed 4 tests
This is a short check of server-side resources used by AGCA - Custom Dashboard & Login Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 52.52 ▲11.31 |
Dashboard /wp-admin | 3.90 ▲0.60 | 62.25 ▲12.37 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 67.04 ▲15.37 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 99.39 ▲0.72 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 55.24 ▲20.95 |
AGCA /wp-admin/tools.php?page=ag-custom-admin/plugin.php | 3.85 | 67.59 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for AGCA - Custom Dashboard & Login Page
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,247 ▲501 | 13.93 ▼0.36 | 8.65 ▲6.95 | 41.63 ▼3.44 |
Dashboard /wp-admin | 2,627 ▲439 | 5.14 ▲0.29 | 108.87 ▼8.61 | 37.89 ▼7.93 |
Posts /wp-admin/edit.php | 2,494 ▲408 | 2.33 ▲0.31 | 40.42 ▲3.52 | 33.87 ▼10.04 |
Add New Post /wp-admin/post-new.php | 1,613 ▲85 | 23.89 ▲5.21 | 647.24 ▼6.23 | 51.99 ▼0.94 |
Media Library /wp-admin/upload.php | 1,795 ▲410 | 4.46 ▲0.29 | 97.09 ▼3.92 | 43.32 ▼0.37 |
AGCA /wp-admin/tools.php?page=ag-custom-admin/plugin.php | 6,325 | 8.84 | 249.92 | 233.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
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
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/ag-custom-admin/tests/_support/UnitTester.php:19
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/ag-custom-admin/tests/_support/Helper/Functional.php:7
- > PHP Fatal error
Uncaught Error: Class 'AcceptanceTester' not found in wp-content/plugins/ag-custom-admin/tests/acceptance/AGCAInstalledCept.php:2
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/ag-custom-admin/tests/_support/FunctionalTester.php:19
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Actor' not found in wp-content/plugins/ag-custom-admin/tests/_support/AcceptanceTester.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ag-custom-admin/plugin.php:40
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/ag-custom-admin/tests/_support/Helper/Acceptance.php:7
- > PHP Fatal error
Uncaught Error: Class 'Page\\AGCAPage' not found in wp-content/plugins/ag-custom-admin/tests/_support/Page/GeneralPage.php:4
- > PHP Fatal error
Uncaught Error: Class 'Codeception\\Module' not found in wp-content/plugins/ag-custom-admin/tests/_support/Helper/Unit.php:7
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
ag-custom-admin/plugin.php 92% from 13 tests
"AGCA - Custom Dashboard & Login Page" version 7.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ag-custom-admin.php" instead of "plugin.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 detected7,530 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 914 | 4,228 | 3,893 |
PO File | 2 | 659 | 710 | 1,464 |
CSS | 3 | 190 | 23 | 1,137 |
JavaScript | 2 | 99 | 56 | 869 |
HTML | 1 | 6 | 0 | 88 |
YAML | 4 | 3 | 17 | 50 |
SVG | 3 | 0 | 0 | 24 |
JSON | 1 | 0 | 0 | 5 |
SQL | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 23.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 298.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 387 | |
▷ Static methods | 2 | 0.52% |
▷ Public methods | 382 | 98.71% |
▷ Protected methods | 3 | 0.78% |
▷ Private methods | 2 | 0.52% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
6 PNG files occupy 0.45MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/donate-btn.png | 14.49KB | 4.79KB | ▼ 66.93% |
images/agca-background.png | 420.58KB | 268.58KB | ▼ 36.14% |
images/cusminlogo.png | 12.03KB | 3.14KB | ▼ 73.93% |
style/mask.png | 1.97KB | 4.18KB | 0.00% |
style/marker.png | 0.64KB | 0.71KB | 0.00% |