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
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/dealads/includes/widget.php+119
Function create_function() is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼59.20ms] Passed 4 tests
Server-side resources used by DealAds
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.34 | 5.32 ▼35.45 |
Dashboard /wp-admin | 2.14 ▼1.21 | 9.01 ▼54.21 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 5.83 ▼47.99 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 6.79 ▼99.15 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 6.48 ▼28.17 |
DealAds /wp-admin/options-general.php?page=wpda_settings | 2.14 | 6.49 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_wpda_widget |
widget_theysaidso_widget |
db_upgraded |
wpda_window |
wpda_legal |
theysaidso_admin_options |
wpda_region |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DealAds
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.53 ▲0.33 | 1.86 ▲0.14 | 44.29 ▲0.41 |
Dashboard /wp-admin | 2,203 ▲26 | 5.68 ▲0.03 | 94.39 ▼1.49 | 42.90 ▲1.73 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.00 ▲0.01 | 34.26 ▼5.85 | 31.63 ▼11.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.38 ▼0.30 | 657.82 ▼46.11 | 52.56 ▼3.10 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▲0.01 | 110.07 ▼0.58 | 47.18 ▲2.17 |
DealAds /wp-admin/options-general.php?page=wpda_settings | 921 | 1.99 | 23.35 | 33.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/dealads/includes/widget.php+119
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_wpda_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpda_settings
- > Deprecated in wp-content/plugins/dealads/includes/widget.php+119
Function create_function() is deprecated
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dealads/dealads.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dealads/admin/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dealads/includes/widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== dealads ===
)
dealads/dealads.php 92% from 13 tests
The primary PHP file in "DealAds" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected720 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 82 | 24 | 517 |
PO File | 1 | 39 | 45 | 103 |
CSS | 1 | 20 | 0 | 100 |
JavaScript | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 33.33% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 30.35KB | 13.06KB | ▼ 56.99% |