Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/scoreboard-widget/widget-scoreboard.php+215
Methods with the same name as their class will not be constructors in a future version of PHP; jc_scoreboard_widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼55.29ms] Passed 4 tests
Analyzing server-side resources used by Plugin Name: Scoreboard Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 5.39 ▼40.83 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.15 ▼46.04 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 7.27 ▼43.09 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 5.69 ▼88.97 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 5.93 ▼43.04 |
Score Categories /wp-admin/edit-tags.php?taxonomy=jc_scores_cat&post_type=jc_scoreboard | 2.18 | 6.62 |
All Scores /wp-admin/edit.php?post_type=jc_scoreboard | 2.18 | 6.47 |
Add New Score /wp-admin/post-new.php?post_type=jc_scoreboard | 2.18 | 6.61 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/scoreboard-widget/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_jc_scoreboard_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Plugin Name: Scoreboard Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 13.13 ▼1.49 | 5.70 ▲3.68 | 38.94 ▼3.60 |
Dashboard /wp-admin | 2,252 ▲49 | 5.83 ▼0.04 | 97.34 ▼17.03 | 39.51 ▼3.45 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.98 ▼0.02 | 41.94 ▲0.55 | 36.66 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.04 ▲5.46 | 647.90 ▲7.36 | 50.34 ▼1.07 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.23 ▼0.02 | 106.23 ▲2.95 | 44.99 ▲2.87 |
Score Categories /wp-admin/edit-tags.php?taxonomy=jc_scores_cat&post_type=jc_scoreboard | 1,302 | 2.14 | 27.54 | 29.66 |
All Scores /wp-admin/edit.php?post_type=jc_scoreboard | 1,105 | 1.97 | 30.33 | 31.09 |
Add New Score /wp-admin/post-new.php?post_type=jc_scoreboard | 1,735 | 2.64 | 55.79 | 58.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/scoreboard-widget/widget-scoreboard.php+215
Methods with the same name as their class will not be constructors in a future version of PHP; jc_scoreboard_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_jc_scoreboard_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=jc_scoreboard
- > Deprecated in wp-content/plugins/scoreboard-widget/widget-scoreboard.php+215
Methods with the same name as their class will not be constructors in a future version of PHP; jc_scoreboard_widget has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=jc_scoreboard
- > Notice in wp-content/plugins/scoreboard-widget/widget-scoreboard.php+144
Undefined index: std
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Plugin Name: Scoreboard Widget===
)
scoreboard-widget/widget-scoreboard.php 92% from 13 tests
The primary PHP file in "Plugin Name: Scoreboard Widget" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scoreboard-widget.php" instead of "widget-scoreboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin747 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 92 | 51 | 328 |
PHP | 1 | 40 | 27 | 251 |
CSS | 2 | 22 | 0 | 168 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin