Benchmarks
Plugin footprint 65% 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.47MB] [CPU: ▼0.70ms] Passed 4 tests
An overview of server-side resources used by Live Scores for SportsPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 43.26 ▲1.28 |
Dashboard /wp-admin | 3.79 ▲0.49 | 47.70 ▼2.53 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 51.89 ▲5.09 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 91.90 ▼2.64 |
Media Library /wp-admin/upload.php | 3.71 ▲0.49 | 36.79 ▲1.08 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 3.89 | 40.25 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 228 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
fs_gdpr |
widget_recent-posts |
fs_debug_mode |
fs_accounts |
db_upgraded |
fs_active_plugins |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Live Scores for SportsPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.24 ▼1.21 | 2.01 ▲0.28 | 28.98 ▼17.50 |
Dashboard /wp-admin | 2,243 ▲58 | 4.87 ▼0.22 | 109.49 ▲4.22 | 42.90 ▼1.76 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 1.99 ▼0.05 | 40.32 ▲3.96 | 42.89 ▲7.79 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.16 ▼0.05 | 695.28 ▲20.41 | 53.48 ▼8.67 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.21 ▼0.03 | 96.22 ▼9.90 | 46.04 ▲1.28 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,054 | 1.70 | 26.84 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/live-scores-for-sportspress/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- fs_active_plugins
- fs_accounts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- fs_debug_mode
- fs_gdpr
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-scores-for-sportspress/includes/class-lsfs-frontend-scripts.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/live-scores-for-sportspress/includes/admin/views/tabs/general.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/live-scores-for-sportspress/includes/admin/views/tabs/about.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/live-scores-for-sportspress/includes/admin/views/html-admin-live-matches.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/live-scores-for-sportspress/includes/integrations/views/html-integration-scorespro-free.php:10
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: sportspress, live
live-scores-for-sportspress/live-scores-for-sportspress.php Passed 13 tests
Analyzing the main PHP file in "Live Scores for SportsPress" version 1.9.2
72 characters long description:
Enhance SportsPress with Live Scores, Live Minutes, Commentary and other
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected37,620 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 155 | 8,581 | 17,370 | 35,560 |
JavaScript | 8 | 151 | 93 | 1,206 |
Sass | 2 | 104 | 0 | 834 |
CSS | 16 | 2 | 8 | 19 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 63.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 4 | 5.41% |
▷ Concrete classes | 70 | 94.59% |
▷ Final classes | 1 | 1.43% |
Methods | 1,289 | |
▷ Static methods | 190 | 14.74% |
▷ Public methods | 943 | 73.16% |
▷ Protected methods | 15 | 1.16% |
▷ Private methods | 331 | 25.68% |
Functions | 126 | |
▷ Named functions | 125 | 99.21% |
▷ Anonymous functions | 1 | 0.79% |
Constants | 129 | |
▷ Global constants | 104 | 80.62% |
▷ Class constants | 25 | 19.38% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 3.62KB | 3.88KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/integration-scorespro-free.png | 84.38KB | 16.97KB | ▼ 79.89% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |