Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/go-ads-widget/GO-ads.php+974
Methods with the same name as their class will not be constructors in a future version of PHP; ads300_250 has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼55.46ms] Passed 4 tests
Analyzing server-side resources used by Go Ads widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.73 ▼38.95 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.51 ▼47.62 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 6.68 ▼41.78 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.45 ▼93.49 |
Media Library /wp-admin/upload.php | 2.07 ▼1.15 | 5.48 ▼29.39 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 16 new options
New WordPress options |
---|
widget_ads120-60 |
widget_ads250-250 |
widget_ads300-250 |
widget_ads120-240 |
widget_ads120-600 |
widget_ads120-90 |
widget_ads300-600 |
db_upgraded |
theysaidso_admin_options |
widget_ads160-600 |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Go Ads widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.55 ▼1.00 | 4.87 ▲3.12 | 43.87 ▲6.65 |
Dashboard /wp-admin | 2,208 ▲20 | 4.86 ▼0.02 | 110.11 ▲2.00 | 40.86 ▼4.42 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.02 ▼0.04 | 40.43 ▼2.52 | 34.11 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,516 ▲2 | 17.71 ▼0.01 | 697.98 ▲21.03 | 61.62 ▼0.16 |
Media Library /wp-admin/upload.php | 1,387 ▲2 | 4.22 ▼0.05 | 98.96 ▼4.90 | 41.20 ▼3.74 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ads_styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 16 options
- theysaidso_admin_options
- widget_ads250-250
- widget_ads120-600
- db_upgraded
- widget_recent-comments
- widget_ads120-60
- can_compress_scripts
- widget_ads120-240
- widget_ads300-100
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 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/go-ads-widget/GO-ads.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png - Widget Options), #2 (screenshot-2.png - Front end)
go-ads-widget/GO-ads.php 92% from 13 tests
"Go Ads widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("go-ads-widget.php" instead of "GO-ads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,057 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 134 | 29 | 916 |
CSS | 1 | 12 | 0 | 141 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.46KB | 12.95KB | ▼ 44.81% |
screenshot-2.png | 73.91KB | 20.41KB | ▼ 72.38% |