Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.27MB] [CPU: ▼280.80ms] 75% from 4 tests
Analyzing server-side resources used by Soccer Info
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 670.24ms on /wp-admin/options-general.php?page=soccer-info)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.80 ▲1.29 | 68.32 ▲17.16 |
Dashboard /wp-admin | 4.72 ▲1.31 | 45.50 ▲10.69 |
Posts /wp-admin/edit.php | 4.94 ▲1.30 | 53.81 ▲17.39 |
Add New Post /wp-admin/post-new.php | 8.21 ▲1.21 | 119.97 ▼1,165.47 |
Media Library /wp-admin/upload.php | 4.59 ▲1.30 | 38.94 ▲14.42 |
Soccer Info /wp-admin/options-general.php?page=soccer-info | 4.88 | 670.24 |
Server storage [IO: ▲3.09MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 163 new files
Database: no new tables, 2 new options
New WordPress options |
---|
soccer_info_options |
widget_soccer_info_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Soccer Info
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲19 | 16.01 ▼0.04 | 7.68 ▲0.67 | 2.71 ▼0.01 |
Dashboard /wp-admin | 2,897 ▲36 | 6.08 ▼0.02 | 129.48 ▼8.44 | 173.14 ▲13.14 |
Posts /wp-admin/edit.php | 2,697 ▲3 | 3.24 ▼0.12 | 70.53 ▲8.06 | 144.03 ▲1.96 |
Add New Post /wp-admin/post-new.php | 1,720 ▲59 | 20.84 ▼1.93 | 464.18 ▲39.25 | 158.16 ▲1.00 |
Media Library /wp-admin/upload.php | 1,709 ▲11 | 5.47 ▼0.02 | 141.82 ▼8.08 | 188.29 ▼12.59 |
Soccer Info /wp-admin/options-general.php?page=soccer-info | 5,590 | 2.74 | 60.63 | 178.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- soccer_info_options
- widget_soccer_info_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=soccer-info
- > Notice in wp-content/plugins/soccer-info/soccer-info-admin.class.php+215
Undefined property: stdClass::$downloaded
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Soccer Info Settings page), #2 (Shortcodes), #3 (Insert shortcodes without any hassels - Ranking table), #4 (Insert shortcodes without any hassels - Fixtures), #5 (Insert shortcodes without any hassels - Results), #6 (Widget), #7 (In action - 1), #8 (In action - 2)
soccer-info/soccer-info.php 92% from 13 tests
"Soccer Info" version 1.9.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "WordPress 3.3")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin12,662 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 466 | 2,490 | 8,156 |
PO File | 14 | 1,866 | 2,666 | 3,594 |
CSS | 2 | 102 | 21 | 519 |
JavaScript | 6 | 51 | 22 | 393 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 71.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 555.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 326 | |
▷ Static methods | 84 | 25.77% |
▷ Public methods | 274 | 84.05% |
▷ Protected methods | 50 | 15.34% |
▷ Private methods | 2 | 0.61% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
107 PNG files occupy 1.85MB with 1.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/soccer-icons/tottenham_hotspur.png | 18.16KB | 0.73KB | ▼ 95.96% |
img/soccer-icons/fc_kaiserslautern.png | 18.67KB | 1.24KB | ▼ 93.36% |
img/soccer-icons/chemnitzer_fc.png | 15.60KB | 1.24KB | ▼ 92.07% |
img/soccer-icons/borussia_dortmund.png | 18.83KB | 1.29KB | ▼ 93.18% |
img/soccer-icons/dc_united.png | 18.52KB | 1.27KB | ▼ 93.13% |