58% adz-world

Code Review | adz.world allows you to create a wholesome consent-based advertising ecosystem for your audience

WordPress plugin adz.world allows you to create a wholesome consent-based advertising ecosystem for your audience scored58%from 54 tests.

About plugin

  • Plugin page: adz-world
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 11, 2018
  • Latest release: Sep 26, 2018
  • Number of updates: 22
  • Update frequency: every 3.8 days
  • Top authors: dainismichel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /924 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼1.14MB] [CPU: ▼38.50ms] Passed 4 tests

Analyzing server-side resources used by adz.world allows you to create a wholesome consent-based advertising ecosystem for your audience
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6320.60 ▼21.66
Dashboard /wp-admin2.88 ▼0.4321.93 ▼26.86
Posts /wp-admin/edit.php2.88 ▼0.4820.57 ▼30.43
Add New Post /wp-admin/post-new.php2.88 ▼3.0120.09 ▼75.03
Media Library /wp-admin/upload.php2.88 ▼0.3519.23 ▼14.85
Adz Template Settings /wp-admin/edit.php?post_type=adz_ad&page=adz-template-setting2.8820.16
All Adz /wp-admin/edit.php?post_type=adz_ad2.8823.48
Adz Settings /wp-admin/edit.php?post_type=adz_ad&page=_adz_ad_options2.8819.13
Add New Adz /wp-admin/post-new.php?post_type=adz_ad2.8820.74

Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 59 new files
Database: 1 new table, 8 new options
New tables
wp_adz_views
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
adz_session_option
adz_ad_options
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for adz.world allows you to create a wholesome consent-based advertising ecosystem for your audience
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲13713.75 ▼0.631.59 ▼0.2142.54 ▲3.01
Dashboard /wp-admin2,268 ▲775.20 ▲0.36106.66 ▲3.4638.18 ▼6.15
Posts /wp-admin/edit.php2,159 ▲672.39 ▲0.3443.34 ▲2.6932.20 ▼4.22
Add New Post /wp-admin/post-new.php1,568 ▲5523.50 ▲6.02677.45 ▼11.9939.88 ▼12.96
Media Library /wp-admin/upload.php1,453 ▲654.49 ▲0.31102.33 ▼8.8040.88 ▼3.70
Adz Template Settings /wp-admin/edit.php?post_type=adz_ad&page=adz-template-setting8992.1127.4525.84
All Adz /wp-admin/edit.php?post_type=adz_ad1,1362.3434.8328.00
Adz Settings /wp-admin/edit.php?post_type=adz_ad&page=_adz_ad_options1,1242.3833.5733.09
Add New Adz /wp-admin/post-new.php?post_type=adz_ad2,4077.93170.0265.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/adz-world/vendor/eof/adz-config.php+208
    Trying to access array offset on value of type bool
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_adz_views
  • Zombie WordPress options were found after uninstall: 8 options
    • adz_session_option
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • adz_ad_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=adz_ad
    • > Notice in wp-content/plugins/adz-world/vendor/eof/adz-config.php+208
    Trying to access array offset on value of type bool
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=adz_ad
    • > Notice in wp-content/plugins/adz-world/vendor/eof/adz-config.php+208
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/edit.php?post_type=adz_ad&page=adz-template-setting
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=adz_ad&page=adz-template-setting
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=adz_ad
    • > Notice in wp-content/plugins/adz-world/includes/adz-cpt-ads.php+138
    Undefined index: network_ad_id

SRP 50% from 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
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adz-world/adz-templates/template1.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adz-world/includes/adz-cpt-ads.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/adz-world/includes/adz-shortcode.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adz-world/vendor/eof/adz-config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adz-world/session-handling.php:10
    • > PHP Fatal error
      Declaration of PHPRestClient::rest_delete($path, $body) must be compatible with iRestClient::rest_delete($path, $body = Array) in wp-content/plugins/adz-world/classes/rest-client/PHP-Rest-Client.php on line 53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Register and accept TOS and our Data Protection Mandate), #2 (Create an adz rotation), #3 (Set where to display your adz rotation), #4 (Set adz rotation display timing and type)
You can look at the official readme.txt

adz-world/adz-world.php Passed 13 tests

The principal PHP file in "adz.world allows you to create a wholesome consent-based advertising ecosystem for your audience" v. 1.0.8 is loaded by WordPress automatically on each request
91 characters long description:
Run your website like a TV station by requiring adz views in exchange for access to content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,888 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP411,0401,2364,096
JavaScript3157391,475
CSS49643637
Markdown21290565
PO File1303582
HTML22033

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.56
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods145
▷ Static methods106.90%
▷ Public methods13693.79%
▷ Protected methods96.21%
▷ Private methods00.00%
Functions55
▷ Named functions5396.36%
▷ Anonymous functions23.64%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/chosen-sprite.png0.53KB0.88KB0.00%