Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/inazo-advanced-ads-management/inazo.wp.adv.ads.management.php+53
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.83ms] Passed 4 tests
A check of server-side resources used by Advanced ads Management by Inazo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.89 ▼44.93 |
Dashboard /wp-admin | 2.05 ▼1.26 | 4.90 ▼53.42 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.68 ▼43.65 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.16 ▼85.31 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.91 ▼32.68 |
List of ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.list | 2.05 | 5.25 |
Add an ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.add | 2.05 | 7.21 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_inazo_wp_adv_ads_management_the_adds |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_inazo_adv_ads_manager |
widget_recent-comments |
db_upgraded |
inazo_adv_ads_management_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced ads Management by Inazo
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲192 | 13.60 ▼1.07 | 5.83 ▲3.98 | 39.91 ▼5.13 |
Dashboard /wp-admin | 2,233 ▲45 | 4.86 ▼0.00 | 112.34 ▼13.49 | 40.11 ▼2.70 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.03 ▲0.06 | 36.16 ▼1.82 | 33.59 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 18.16 ▼4.96 | 603.49 ▼24.45 | 59.45 ▲2.36 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.25 ▲0.04 | 94.16 ▼9.41 | 43.19 ▼0.11 |
List of ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.list | 893 | 2.06 | 27.96 | 29.36 |
Add an ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.add | 1,169 | 3.48 | 47.93 | 25.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/inazo-advanced-ads-management/inazo.wp.adv.ads.management.php+53
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=inazo.wp.adv.ads.management.add
- > Deprecated in wp-content/plugins/inazo-advanced-ads-management/inazo.wp.adv.ads.management.php+53
Function create_function() is deprecated
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== inazo-advanced-ads-management ===
)
inazo-advanced-ads-management/inazo.wp.adv.ads.management.php 85% from 13 tests
The main PHP script in "Advanced ads Management by Inazo" version 1.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- 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
- Main file name: The principal plugin file should be the same as the plugin slug ("inazo-advanced-ads-management.php" instead of "inazo.wp.adv.ads.management.php")
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
No dangerous file extensions were detected2,120 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 34 | 50 | 1,145 |
PHP | 12 | 289 | 165 | 634 |
PO File | 2 | 104 | 141 | 240 |
JavaScript | 2 | 52 | 23 | 101 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
css/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |