Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼11.34ms] Passed 4 tests
This is a short check of server-side resources used by Sports Rankings and Lists
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.34 ▼3.51 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.35 ▼0.51 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 51.86 ▼16.05 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.67 ▼25.28 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 38.59 ▲3.03 |
Lists /wp-admin/edit.php?post_type=player_list | 3.33 | 40.33 |
Ranker Settings /wp-admin/admin.php?page=ranker_settings | 3.25 | 31.23 |
Rankers /wp-admin/edit.php?post_type=ranker | 3.33 | 34.23 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sports Rankings and Lists
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.34 ▼0.07 | 1.82 ▲0.07 | 44.42 ▼1.32 |
Dashboard /wp-admin | 2,224 ▲47 | 5.59 ▼0.02 | 86.73 ▼8.21 | 79.18 ▲33.96 |
Posts /wp-admin/edit.php | 2,162 ▲59 | 2.48 ▲0.44 | 37.70 ▼3.59 | 33.81 ▼2.12 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.77 ▲0.82 | 732.55 ▲82.90 | 55.46 ▲3.63 |
Media Library /wp-admin/upload.php | 1,448 ▲57 | 4.27 ▲0.09 | 116.94 ▲12.41 | 76.98 ▲30.62 |
Lists /wp-admin/edit.php?post_type=player_list | 1,137 | 2.19 | 31.55 | 30.35 |
Ranker Settings /wp-admin/admin.php?page=ranker_settings | 890 | 1.91 | 29.65 | 29.35 |
Rankers /wp-admin/edit.php?post_type=ranker | 1,150 | 2.21 | 36.38 | 29.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
fopen(): Filename cannot be empty in wp-content/plugins/sports-rankings-lists/import_players.php on line 2
- > PHP Notice
Undefined index: url in wp-content/plugins/sports-rankings-lists/import_players.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-rankings-lists/wp-ranking.php:88
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-rankings-lists/admin.php:10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Tags: There are too many tags (19 tag instead of maximum 10)
sports-rankings-lists/wp-ranking.php 85% from 13 tests
The main PHP script in "Sports Rankings and Lists" version 2.3 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 223 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sports-rankings-lists.php" instead of "wp-ranking.php")
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
No dangerous file extensions were detected798 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 5 | 42 | 584 |
PO File | 1 | 71 | 71 | 161 |
CSS | 2 | 8 | 0 | 37 |
JavaScript | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/drag.png | 2.96KB | 0.39KB | ▼ 86.80% |
images/icon_16.png | 0.51KB | 0.53KB | 0.00% |
images/icon_32.png | 1.04KB | 1.19KB | 0.00% |