Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/comic-rocket-ad-network-widget/comicrocket.php+38
Methods with the same name as their class will not be constructors in a future version of PHP; comicrocket_widget has a deprecated constructor
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.34ms] Passed 4 tests
Server-side resources used by Comic Rocket Ad Network Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.44 | 4.53 ▼37.61 |
Dashboard /wp-admin | 2.08 ▼1.26 | 10.19 ▼40.50 |
Posts /wp-admin/edit.php | 2.09 ▼1.31 | 6.16 ▼40.57 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.84 | 5.72 ▼90.69 |
Media Library /wp-admin/upload.php | 2.09 ▼1.19 | 5.93 ▼28.61 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_comicrocket_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Comic Rocket Ad Network Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.94 ▲0.23 | 39.00 ▼13.73 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.06 | 91.64 ▲1.51 | 38.28 ▼6.20 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▼0.01 | 39.80 ▲1.26 | 36.85 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.14 ▼0.02 | 656.50 ▲36.39 | 56.88 ▼13.71 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.19 ▼0.03 | 99.14 ▼1.24 | 43.00 ▼1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/comic-rocket-ad-network-widget/comicrocket.php+38
Methods with the same name as their class will not be constructors in a future version of PHP; comicrocket_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_comicrocket_widget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/comic-rocket-ad-network-widget/comicrocket.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: comic, ads, widget, webcomic, comicrocket
comic-rocket-ad-network-widget/comicrocket.php 92% from 13 tests
The main PHP file in "Comic Rocket Ad Network Widget" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("comic-rocket-ad-network-widget.php" instead of "comicrocket.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected41 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 24 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin