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.08MB] [CPU: ▼5.62ms] Passed 4 tests
Server-side resources used by Advanced H2H for SportsPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.15 ▼5.35 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.17 ▼16.76 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.25 ▲7.30 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.48 ▼1.01 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.78 ▲0.64 |
Sorting Criteria /wp-admin/edit.php?post_type=sah2h_criteria | 3.35 | 37.41 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced H2H for SportsPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.56 ▼0.58 | 1.73 ▼0.06 | 42.71 ▼3.57 |
Dashboard /wp-admin | 2,209 ▲21 | 4.83 ▼0.98 | 108.84 ▼14.06 | 42.42 ▼3.87 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.03 | 40.37 ▲0.19 | 34.55 ▼4.62 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.08 ▲0.55 | 596.45 ▼204.23 | 53.12 ▼13.31 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.00 | 95.15 ▼4.52 | 39.06 ▼3.56 |
Sorting Criteria /wp-admin/edit.php?post_type=sah2h_criteria | 1,055 | 1.98 | 32.06 | 28.66 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SP_League_Table' not found in wp-content/plugins/advanced-h2h-for-sportspress/includes/class-sah2h-league-table.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
advanced-h2h-for-sportspress/advanced-h2h-for-sportspress.php Passed 13 tests
This is the main PHP file of "Advanced H2H for SportsPress" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
94 characters long description:
Give your league managers the option to use more advanced head to head criteria for tiebreaks.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,259 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 258 | 221 | 1,116 |
CSS | 1 | 20 | 2 | 123 |
JavaScript | 1 | 4 | 7 | 20 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 147)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 87.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 54.00 |
▷ Minimum method complexity | 5.00 |
▷ Maximum method complexity | 147.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 3 | 60.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
PNG images were not found in this plugin