Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼7.02ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Ad Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 39.75 ▼1.42 |
Dashboard /wp-admin | 3.53 ▲0.23 | 45.98 ▼5.18 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.70 ▼9.93 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 81.83 ▼11.56 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 34.28 ▼0.02 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_adwidget_htmlwidget |
widget_recent-posts |
widget_adwidget_parkavewidget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_adwidget_imagewidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wordpress Ad Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.79 ▲0.09 | 1.77 ▲0.05 | 44.71 ▲1.29 |
Dashboard /wp-admin | 2,196 ▲19 | 5.61 ▼0.06 | 94.14 ▼3.23 | 44.90 ▲2.13 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.04 | 39.84 ▲1.25 | 36.35 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.33 ▲0.15 | 652.53 ▼35.22 | 50.66 ▼9.98 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.02 | 94.74 ▼16.83 | 40.65 ▼5.31 |
Ad Widget /wp-admin/adwidget.php | 26 | 0.42 | 0.09 | 11.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- db_upgraded
- widget_adwidget_htmlwidget
- widget_recent-posts
- widget_adwidget_parkavewidget
- widget_recent-comments
- widget_theysaidso_widget
- widget_adwidget_imagewidget
- can_compress_scripts
Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ad-widget/views/admin.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/adwidget.php
- > Network (severe)
wp-admin/adwidget.php - Failed to load resource: the server responded with a status of 404 (Not 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
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ad-widget ===
)
ad-widget/adwidget.php 92% from 13 tests
The main PHP file in "Wordpress Ad Widget" ver. 2.20.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ad-widget.php" instead of "adwidget.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
Good job! No executable or dangerous file extensions detected857 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 220 | 391 | 823 |
JavaScript | 1 | 12 | 2 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 67 | |
▷ Static methods | 27 | 40.30% |
▷ Public methods | 62 | 92.54% |
▷ Protected methods | 5 | 7.46% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sample-ad.png | 11.38KB | 4.30KB | ▼ 62.20% |