Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/dogo-content-widget/dogo-content-widget.php+383
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼188.01ms] Passed 4 tests
An overview of server-side resources used by DOGO Content Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 5.35 ▼18.57 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.50 ▼36.68 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 5.50 ▼40.90 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 4.61 ▼644.46 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 4.78 ▼30.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 3 new options
New WordPress options |
---|
widget_dogobooks_rss_widget |
widget_dogonews_rss_widget |
widget_dogomovies_rss_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DOGO Content Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲109 | 16.24 ▲0.09 | 9.72 ▲0.17 | 49.29 ▲0.48 |
Dashboard /wp-admin | 2,970 ▲39 | 5.96 ▼0.07 | 149.97 ▲2.85 | 107.45 ▼2.90 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.71 ▲0.00 | 72.73 ▲2.90 | 85.45 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,683 ▲103 | 18.80 ▲1.96 | 411.75 ▲11.14 | 114.67 ▲7.94 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.04 ▲0.03 | 167.82 ▲5.91 | 115.29 ▲0.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/dogo-content-widget/dogo-content-widget.php+383
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 3 options in the database
- widget_dogobooks_rss_widget
- widget_dogonews_rss_widget
- widget_dogomovies_rss_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dogo-content-widget/dogo-content-widget.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
dogo-content-widget/dogo-content-widget.php 92% from 13 tests
The principal PHP file in "DOGO Content Widget" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 358 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin323 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 27 | 307 |
CSS | 1 | 3 | 3 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
There are no PNG files in this plugin