Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼9.44ms] Passed 4 tests
A check of server-side resources used by League Table
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.14 ▼2.48 |
Dashboard /wp-admin | 3.71 ▲0.37 | 47.86 ▼12.26 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 44.93 ▼0.32 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 81.52 ▼22.68 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 37.05 ▲3.63 |
Pro Version /wp-admin/admin.php?page=daextletal-pro-version | 3.54 | 31.41 |
Help /wp-admin/admin.php?page=daextletal-help | 3.54 | 32.40 |
Tables /wp-admin/admin.php?page=daextletal-tables | 4.31 | 53.77 |
Options /wp-admin/admin.php?page=daextletal-options | 3.54 | 34.70 |
Server storage [IO: ▲2.13MB] [DB: ▲0.32MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 91 new files
Database: 3 new tables, 18 new options
New tables |
---|
wp_daextletal_data |
wp_daextletal_cell |
wp_daextletal_table |
New WordPress options |
---|
daextletal_tablesorter_library_url |
db_upgraded |
daextletal_verify_single_shortcode |
widget_recent-posts |
daextletal_max_execution_time |
can_compress_scripts |
daextletal_widget_text_shortcode |
theysaidso_admin_options |
daextletal_memory_limit |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for League Table
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲192 | 13.54 ▼0.83 | 9.33 ▲7.35 | 37.82 ▼10.85 |
Dashboard /wp-admin | 2,230 ▲56 | 5.62 ▼0.06 | 85.93 ▼7.77 | 38.84 ▼2.61 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.99 ▼0.00 | 37.86 ▲1.08 | 31.80 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.33 ▲0.26 | 602.91 ▲5.42 | 60.62 ▲5.39 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.18 ▼0.04 | 98.41 ▼4.93 | 41.88 ▼0.99 |
Pro Version /wp-admin/admin.php?page=daextletal-pro-version | 894 | 1.99 | 23.33 | 26.08 |
Help /wp-admin/admin.php?page=daextletal-help | 840 | 2.00 | 27.93 | 28.15 |
Tables /wp-admin/admin.php?page=daextletal-tables | 5,577 | 9.24 | 305.87 | 39.90 |
Options /wp-admin/admin.php?page=daextletal-options | 1,057 | 2.22 | 40.53 | 33.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
Good news, no errors were detected
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
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/league-table-lite/admin/view/tables.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/league-table-lite/admin/view/pro_version.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/league-table-lite/admin/view/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/league-table-lite/admin/view/help.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
league-table-lite/init.php 92% from 13 tests
"League Table" version 1.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("league-table-lite.php" instead of "init.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin13,700 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 48 | 1,428 | 1,547 | 6,499 |
PHP | 11 | 1,039 | 657 | 4,526 |
CSS | 14 | 521 | 129 | 2,656 |
Markdown | 1 | 4 | 0 | 19 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 54.80 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 7 | 7.69% |
▷ Public methods | 85 | 93.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.59% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/edit.png | 1.28KB | 0.33KB | ▼ 74.12% |
admin/assets/img/trash.png | 1.11KB | 0.19KB | ▼ 82.81% |
admin/assets/img/clone-hover.png | 18.71KB | 0.12KB | ▼ 99.34% |
admin/assets/img/has-cell-properties.png | 3.44KB | 0.13KB | ▼ 96.31% |
admin/assets/inc/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |