Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/dj-on-air-widget/dj-on-air.php+450
Methods with the same name as their class will not be constructors in a future version of PHP; DJ_Widget has a deprecated constructor
Server metrics [RAM: ▼1.78MB] [CPU: ▼57.88ms] Passed 4 tests
Analyzing server-side resources used by DJ On Air Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 4.56 ▼37.01 |
Dashboard /wp-admin | 2.24 ▼1.11 | 5.86 ▼58.26 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 6.68 ▼42.71 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 5.97 ▼93.55 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 6.05 ▼29.03 |
DJ On-Air /wp-admin/options-general.php?page=dj-on-air-widget | 2.24 | 6.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_dj_widget |
db_upgraded |
widget_theysaidso_widget |
dj_access_roles |
Browser metrics Passed 4 tests
Checking browser requirements for DJ On Air Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.20 ▼0.42 | 1.52 ▼0.26 | 37.52 ▼3.34 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.01 | 92.52 ▲3.91 | 38.49 ▼4.62 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.03 | 39.67 ▲1.30 | 37.03 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 18.14 ▼4.94 | 629.10 ▼55.22 | 55.50 ▲0.43 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▲0.03 | 99.81 ▲2.94 | 44.20 ▼2.46 |
DJ On-Air /wp-admin/options-general.php?page=dj-on-air-widget | 924 | 1.96 | 27.36 | 29.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/dj-on-air-widget/dj-on-air.php+450
Methods with the same name as their class will not be constructors in a future version of PHP; DJ_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 8 options in the database
- dj_access_roles
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_dj_widget
Smoke tests 50% 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=dj-on-air-widget
- > Deprecated in wp-content/plugins/dj-on-air-widget/dj-on-air.php+450
Methods with the same name as their class will not be constructors in a future version of PHP; DJ_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=dj-on-air-widget
- > Deprecated in wp-content/plugins/dj-on-air-widget/dj-on-air.php+687
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=dj-on-air-widget
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in DJ_Widget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dj-on-air-widget/dj-on-air.php:33
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: scheduling, music, radio, dj
dj-on-air-widget/dj-on-air.php 92% from 13 tests
The main PHP file in "DJ On Air Widget" ver. 0.2.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dj-on-air-widget.php" instead of "dj-on-air.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
Success! There were no dangerous files found in this plugin569 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 92 | 59 | 538 |
CSS | 1 | 5 | 2 | 31 |
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.35 |
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 | 8.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 | 9 | |
▷ Named functions | 9 | 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
PNG images were not found in this plugin