Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼6.44ms] Passed 4 tests
Server-side resources used by SportsPress for Cricket
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 42.04 ▲2.35 |
Dashboard /wp-admin | 3.84 ▲0.49 | 48.78 ▼16.78 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 54.74 ▲3.98 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 87.18 ▼13.79 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 37.77 ▲2.45 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.77 | 33.97 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SportsPress for Cricket
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.75 ▼0.64 | 5.01 ▲3.16 | 38.77 ▼8.18 |
Dashboard /wp-admin | 2,237 ▲46 | 5.87 ▼0.02 | 101.38 ▼5.86 | 45.14 ▲7.69 |
Posts /wp-admin/edit.php | 2,128 ▲60 | 2.05 ▲0.06 | 39.76 ▲3.55 | 41.58 ▲10.12 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.45 ▲4.99 | 651.67 ▲12.72 | 52.67 ▼2.41 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.30 ▲0.06 | 97.44 ▼1.72 | 47.32 ▲2.16 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 966 | 2.08 | 24.84 | 31.75 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sportspress-for-cricket/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
sportspress-for-cricket/sportspress-for-cricket.php Passed 13 tests
The main PHP file in "SportsPress for Cricket" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
A suite of cricket features for SportsPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,197 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 564 | 1,722 | 2,103 |
PO File | 1 | 32 | 166 | 66 |
CSS | 2 | 4 | 1 | 15 |
JavaScript | 2 | 0 | 1 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 8 | 6.61% |
▷ Public methods | 96 | 79.34% |
▷ Protected methods | 23 | 19.01% |
▷ Private methods | 2 | 1.65% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin