Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.11ms] Passed 4 tests
This is a short check of server-side resources used by AMIMOTO Plugin Dashboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 51.18 ▲4.13 |
Dashboard /wp-admin | 3.49 ▲0.19 | 48.12 ▼4.03 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 47.39 ▼1.88 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 96.17 ▲1.32 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 40.25 ▲4.46 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for AMIMOTO Plugin Dashboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.24 ▼1.15 | 2.05 ▼0.30 | 40.63 ▼3.85 |
Dashboard /wp-admin | 2,220 ▲29 | 4.82 ▼1.08 | 112.11 ▲12.33 | 45.96 ▲6.25 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.01 ▼0.04 | 40.72 ▼0.85 | 35.61 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 17.70 ▼5.41 | 670.16 ▼29.66 | 58.81 ▲2.16 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.29 ▲0.08 | 93.25 ▼17.05 | 40.30 ▼7.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/NCC/Plugin_Settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/WP/Plugins.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/amimoto-dashboard/amimoto-plugin-dashboard.php:15
- > PHP Fatal error
Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/C3/Plugin_Settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/C3/Invalidation_Form.php:4
- > PHP Fatal error
Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/WP/AMIMOTO_Managed.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function AMIMOTO_Dashboard\\Templates\\path_join() in wp-content/plugins/amimoto-dashboard/templates/Plugin_Sidebar.php:4
- > PHP Fatal error
Uncaught Error: Class 'AMIMOTO_Dashboard\\Constants' not found in wp-content/plugins/amimoto-dashboard/templates/Plugin_Header.php:4
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: admin, amimoto
amimoto-dashboard/amimoto-plugin-dashboard.php 85% from 13 tests
The main PHP file in "AMIMOTO Plugin Dashboard" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("amimoto-dashboard.php" instead of "amimoto-plugin-dashboard.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
Good job! No executable or dangerous file extensions detected1,577 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 114 | 177 | 1,241 |
XML | 3 | 0 | 0 | 198 |
YAML | 3 | 7 | 3 | 98 |
CSS | 1 | 2 | 0 | 35 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 6 | 10.00% |
▷ Public methods | 58 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.33% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 13 | |
▷ Global constants | 3 | 23.08% |
▷ Class constants | 10 | 76.92% |
▷ Public constants | 10 | 100.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
5 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/banner-1544x500.png | 63.80KB | 30.25KB | ▼ 52.59% |
.wordpress-org/banner-772x250.png | 12.58KB | 6.06KB | ▼ 51.82% |
.wordpress-org/icon-256x256.png | 1.53KB | 0.29KB | ▼ 80.68% |
.wordpress-org/icon-128x128.png | 1.23KB | 0.20KB | ▼ 83.97% |
assets/amimoto.png | 8.33KB | 3.68KB | ▼ 55.82% |