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.04MB] [CPU: ▼6.72ms] Passed 4 tests
An overview of server-side resources used by StatsFC Match Centre
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.20 ▼5.32 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.19 ▼5.56 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.94 ▼0.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.11 ▼15.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.24 ▲6.37 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_statsfc_matchcentre |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for StatsFC Match Centre
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.66 ▼1.09 | 1.67 ▼0.12 | 39.61 ▼8.06 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▼0.08 | 95.76 ▼3.59 | 40.20 ▼8.27 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.00 | 40.46 ▲4.65 | 34.29 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.29 ▲0.07 | 651.63 ▼0.49 | 54.04 ▲3.06 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.15 ▼0.02 | 109.40 ▲11.06 | 47.70 ▲0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_statsfc_matchcentre
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/statsfc-match-centre/statsfc-match-centre.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid URI ("")
statsfc-match-centre/statsfc-match-centre.php Passed 13 tests
The primary PHP file in "StatsFC Match Centre" version 2.0.1 is used by WordPress to initiate all plugin functionality
20 characters long description:
StatsFC Match Centre
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin678 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 78 | 5 | 328 |
PHP | 1 | 44 | 77 | 189 |
CSS | 2 | 35 | 1 | 161 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected