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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.62ms] Passed 4 tests
A check of server-side resources used by IAN Ads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 43.79 ▲5.69 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.11 ▼10.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.83 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.46 ▼15.73 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 35.93 ▲2.95 |
IAN Ad Options /wp-admin/options-general.php?page=ian_options | 3.28 | 31.68 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for IAN Ads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.85 ▲0.47 | 1.60 ▲0.02 | 38.23 ▼2.47 |
Dashboard /wp-admin | 2,210 ▲31 | 5.85 ▲0.90 | 108.22 ▼21.20 | 41.97 ▼15.10 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▲0.03 | 40.34 ▲4.32 | 34.80 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▼8 | 23.39 ▲4.92 | 649.27 ▲11.50 | 56.93 ▼2.87 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.30 ▲0.05 | 95.17 ▼1.49 | 40.80 ▼3.84 |
IAN Ad Options /wp-admin/options-general.php?page=ian_options | 1,131 | 2.28 | 23.89 | 31.06 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ian-ads/ian-ads.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/ian-ads/explanation.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ian-ads/widget.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: ad, ian, ads, advertising
ian-ads/ian-ads.php Passed 13 tests
"IAN Ads" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Add Ads from the Interactive Ad Network (IAN) to your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin368 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 63 | 101 | 366 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 5 | 22.73% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 22.39KB | 13.33KB | ▼ 40.45% |
assets/screenshot-2.png | 21.25KB | 13.40KB | ▼ 36.91% |
assets/icon-256x256.png | 2.03KB | 2.18KB | 0.00% |
assets/icon-128x128.png | 1.98KB | 2.03KB | 0.00% |