10% inazo-advanced-ads-management

Code Review | Advanced ads Management by Inazo

WordPress plugin Advanced ads Management by Inazo scored10%from 54 tests.

About plugin

  • Plugin page: inazo-advanced-ad...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Dec 15, 2017
  • Number of updates: 34
  • Update frequency: every 13.7 days
  • Top authors: inazo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,433 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.89 ▼44.93
Dashboard /wp-admin2.05 ▼1.264.90 ▼53.42
Posts /wp-admin/edit.php2.05 ▼1.315.68 ▼43.65
Add New Post /wp-admin/post-new.php2.05 ▼3.845.16 ▼85.31
Media Library /wp-admin/upload.php2.05 ▼1.184.91 ▼32.68
List of ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.list2.055.25
Add an ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.add2.057.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲19213.60 ▼1.075.83 ▲3.9839.91 ▼5.13
Dashboard /wp-admin2,233 ▲454.86 ▼0.00112.34 ▼13.4940.11 ▼2.70
Posts /wp-admin/edit.php2,113 ▲242.03 ▲0.0636.16 ▼1.8233.59 ▼0.89
Add New Post /wp-admin/post-new.php1,564 ▲4518.16 ▼4.96603.49 ▼24.4559.45 ▲2.36
Media Library /wp-admin/upload.php1,409 ▲214.25 ▲0.0494.16 ▼9.4143.19 ▼0.11
List of ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.list8932.0627.9629.36
Add an ads /wp-admin/admin.php?page=inazo.wp.adv.ads.management.add1,1693.4847.9325.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 === )
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
CSS234501,145
PHP12289165634
PO File2104141240
JavaScript25223101

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 code0.27
Average class complexity16.50
▷ Minimum class complexity7.00
▷ Maximum class complexity27.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
css/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%
css/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%