Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.57ms] Passed 4 tests
This is a short check of server-side resources used by Cric Zumo Cricket Scoreboards and Odds Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.20 ▲2.36 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.29 ▲0.92 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.87 ▼1.33 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 90.15 ▼12.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.15 ▼1.20 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_criczumo_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cric Zumo Cricket Scoreboards and Odds Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲154 | 14.38 ▲0.09 | 8.26 ▲6.57 | 40.19 ▼1.21 |
Dashboard /wp-admin | 2,243 ▲55 | 5.14 ▲0.04 | 99.50 ▼12.44 | 90.04 ▲48.89 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.28 ▲0.24 | 37.84 ▼5.87 | 35.32 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.66 ▲6.13 | 674.04 ▲36.76 | 35.25 ▼26.69 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 4.37 ▲0.15 | 96.78 ▼2.68 | 84.51 ▲41.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_criczumo_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cric-zumo/includes/plugin_mainpage_wrapper.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_rand() in wp-content/plugins/cric-zumo/includes/scoreboard_widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cric-zumo/criczumo.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: scoreboard, livescores, cricket odds, live scoreboard, cricket
cric-zumo/criczumo.php 92% from 13 tests
The primary PHP file in "Cric Zumo Cricket Scoreboards and Odds Plugin" version 0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cric-zumo.php" instead of "criczumo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin11,179 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 55 | 10 | 6,566 |
JavaScript | 6 | 839 | 507 | 3,784 |
PHP | 4 | 291 | 27 | 541 |
SVG | 1 | 0 | 0 | 288 |
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.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/cricketball16px.png | 0.78KB | 0.87KB | 0.00% |
includes/images/wrong.png | 0.75KB | 0.50KB | ▼ 33.29% |
includes/images/plugin-header.png | 30.26KB | 6.78KB | ▼ 77.59% |
includes/images/tick.png | 0.68KB | 0.48KB | ▼ 28.57% |
includes/images/hs.png | 2.62KB | 7.54KB | 0.00% |