Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.20ms] Passed 4 tests
An overview of server-side resources used by AML League
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 38.63 ▼4.73 |
Dashboard /wp-admin | 3.55 ▲0.20 | 48.49 ▼15.38 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 52.88 ▲2.69 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 98.72 ▲3.43 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 35.92 ▲0.63 |
Server storage [IO: ▲58.80MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Filesystem usage must be lower than 25MB (currently using 58.80MB)
Filesystem: 1,481 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AML League
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲208 | 14.60 ▲0.33 | 31.10 ▲29.30 | 38.16 ▼4.74 |
Dashboard /wp-admin | 2,245 ▲67 | 5.99 ▲0.27 | 95.98 ▼19.65 | 93.00 ▲50.02 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 2.25 ▲0.27 | 41.40 ▲5.31 | 34.24 ▼0.11 |
Add New Post /wp-admin/post-new.php | 6,410 ▲4,884 | 25.97 ▲2.60 | 839.07 ▲166.68 | 60.97 ▲15.64 |
Media Library /wp-admin/upload.php | 1,465 ▲62 | 4.44 ▲0.13 | 96.66 ▼0.25 | 73.24 ▲31.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 17× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/aml-league/tags/1.2.3/tags/1.2/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2.1/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2.3/tags/1.2.1/tags/1.2/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2.3/tags/1.2.2/tags/1.2.1/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2.5/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2.1/tags/1.2/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2.2/tags/1.2/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2/admin/index_html/footer.php
- > /wp-content/plugins/aml-league/tags/1.2.3/tags/1.2.2/admin/index_html/footer.php
- 1035× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aml-league/tags/1.2/shortcodes/sc_html/aml-league-print_html.php:20
- > PHP Notice
Undefined variable: club_guid in wp-content/plugins/aml-league/tags/1.2.2/tags/1.2/shortcodes/sc_html/aml-league-player_html.php on line 35
- > PHP Notice
Undefined variable: player_profile_id in wp-content/plugins/aml-league/tags/1.2.2/tags/1.2.1/shortcodes/sc_html/aml-league-player_html.php on line 25
- > PHP Notice
Undefined variable: html in wp-content/plugins/aml-league/tags/1.2.3/tags/1.2.1/tags/1.2/shortcodes/sc_html/aml-league-table_html.php on line 18
- > PHP Notice
Undefined variable: datatable_id in wp-content/plugins/aml-league/tags/1.2.3/shortcodes/sc_html/aml-league-tops_html.php on line 76
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/aml-league/tags/1.2.3/tags/1.2.2/aml-posttypes/aml-pt-matchs.php:5
- > PHP Notice
Undefined variable: datatable_id in wp-content/plugins/aml-league/tags/1.2.1/shortcodes/sc_html/aml-league-tops_html.php on line 77
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aml-league/tags/1.2.2/tags/1.2.1/tags/1.2/shortcodes/sc_html/aml-league-print_html.php:20
- > PHP Notice
Undefined variable: playerCONTACT in wp-content/plugins/aml-league/tags/1.2.3/tags/1.2/shortcodes/sc_html/aml-league-player_html.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aml-league/tags/1.2.1/tags/1.2/shortcodes/sc_html/aml-league-print_html.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6 in aml-league/assets to your readme.txt
aml-league/aml-league.php Passed 13 tests
The main PHP script in "AML League" version 1.2.5 is automatically included on every request by WordPress
47 characters long description:
Badminton / Tennis / Table tennis League Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin19,859 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 4,016 | 2,824 | 12,328 |
JavaScript | 6 | 277 | 413 | 2,844 |
CSS | 10 | 260 | 187 | 2,815 |
PO File | 3 | 808 | 1,035 | 1,872 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 45.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 68 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 646 | |
▷ Static methods | 17 | 2.63% |
▷ Public methods | 629 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 2.63% |
Functions | 884 | |
▷ Named functions | 884 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 527 | |
▷ Global constants | 527 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
287 PNG files occupy 31.16MB with 15.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tags/1.2.3/tags/1.2.2/tags/1.2.1/fjs/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |
tags/1.2.3/tags/1.2.2/assets/screenshot-6.png | 90.13KB | 33.08KB | ▼ 63.30% |
tags/1.2.3/tags/1.2.2/tags/1.2/doc/templates_hierarchy.png | 203.18KB | 60.81KB | ▼ 70.07% |
tags/1.2.3/tags/1.2.1/tags/1.2/images/print.png | 20.54KB | 9.16KB | ▼ 55.41% |
tags/1.2.5/assets/screenshot-1.png | 96.05KB | 41.52KB | ▼ 56.77% |