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
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-dealpixel-ads/wp_dealpixel_ads.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; WPDealPixelAdsWidget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.52ms] Passed 4 tests
Analyzing server-side resources used by WP DealPixel Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 4.95 ▼36.26 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.61 ▼44.44 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 5.20 ▼47.62 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 7.04 ▼89.77 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 5.27 ▼31.91 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_wpdealpixelads |
Browser metrics Passed 4 tests
An overview of browser requirements for WP DealPixel Ads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.20 ▼1.39 | 1.77 ▼0.26 | 44.86 ▼1.14 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▼0.05 | 108.85 ▼2.50 | 43.12 ▲3.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.03 | 38.36 ▼10.56 | 33.96 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 22.89 ▼0.24 | 643.74 ▼95.70 | 61.11 ▼4.03 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.02 | 93.91 ▼22.94 | 40.28 ▼13.01 |
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
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-dealpixel-ads/wp_dealpixel_ads.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; WPDealPixelAdsWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_wpdealpixelads
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-dealpixel-ads/wp_dealpixel_ads.php:12
- > PHP Notice
Undefined index: buy in wp-content/plugins/wp-dealpixel-ads/store.php on line 4
- > PHP Notice
Undefined index: cheap in wp-content/plugins/wp-dealpixel-ads/store.php on line 5
- > PHP Notice
Undefined index: buyurl in wp-content/plugins/wp-dealpixel-ads/store.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-dealpixel-ads ===
) - Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-dealpixel-ads/wp_dealpixel_ads.php 92% from 13 tests
"WP DealPixel Ads" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-dealpixel-ads.php" instead of "wp_dealpixel_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
There were no executable files found in this plugin274 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 45 | 274 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 8.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dp-logo.png | 2.02KB | 1.26KB | ▼ 37.26% |