Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.64ms] Passed 4 tests
An overview of server-side resources used by PurpleAds Ad Network
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.44 ▼0.18 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.45 ▼9.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.27 ▼5.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.26 ▼12.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.74 ▼2.63 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PurpleAds Ad Network
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.42 ▲0.14 | 1.93 ▲0.27 | 43.37 ▲3.06 |
Dashboard /wp-admin | 2,218 ▲47 | 5.79 ▲0.15 | 87.09 ▼2.97 | 39.32 ▼1.98 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.00 ▲0.02 | 41.05 ▲4.65 | 36.62 ▲3.41 |
Add New Post /wp-admin/post-new.php | 1,543 ▲12 | 23.53 ▲0.46 | 686.27 ▲43.17 | 53.10 ▼1.03 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.17 ▼0.02 | 98.95 ▼10.59 | 45.22 ▼6.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: banners, display, prebid, banner, ad network...
purpleads/purpleads.php 92% from 13 tests
The main PHP file in "PurpleAds Ad Network" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin522 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 56 | 1 | 266 |
PHP | 1 | 34 | 16 | 255 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 7 | |
▷ Static methods | 7 | 100.00% |
▷ Public methods | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.67MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-1200.png | 29.60KB | 10.48KB | ▼ 64.58% |
assets/screenshot-3.png | 114.65KB | 40.69KB | ▼ 64.51% |
assets/video.png | 5.37KB | 1.09KB | ▼ 79.75% |
assets/banner-1544x500.png | 153.88KB | 52.29KB | ▼ 66.02% |
assets/resbanner.png | 18.39KB | 0.41KB | ▼ 97.76% |