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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼0.63 | 20.60 ▼21.66 |
Dashboard /wp-admin | 2.88 ▼0.43 | 21.93 ▼26.86 |
Posts /wp-admin/edit.php | 2.88 ▼0.48 | 20.57 ▼30.43 |
Add New Post /wp-admin/post-new.php | 2.88 ▼3.01 | 20.09 ▼75.03 |
Media Library /wp-admin/upload.php | 2.88 ▼0.35 | 19.23 ▼14.85 |
Adz Template Settings /wp-admin/edit.php?post_type=adz_ad&page=adz-template-setting | 2.88 | 20.16 |
All Adz /wp-admin/edit.php?post_type=adz_ad | 2.88 | 23.48 |
Adz Settings /wp-admin/edit.php?post_type=adz_ad&page=_adz_ad_options | 2.88 | 19.13 |
Add New Adz /wp-admin/post-new.php?post_type=adz_ad | 2.88 | 20.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲137 | 13.75 ▼0.63 | 1.59 ▼0.21 | 42.54 ▲3.01 |
Dashboard /wp-admin | 2,268 ▲77 | 5.20 ▲0.36 | 106.66 ▲3.46 | 38.18 ▼6.15 |
Posts /wp-admin/edit.php | 2,159 ▲67 | 2.39 ▲0.34 | 43.34 ▲2.69 | 32.20 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,568 ▲55 | 23.50 ▲6.02 | 677.45 ▼11.99 | 39.88 ▼12.96 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.49 ▲0.31 | 102.33 ▼8.80 | 40.88 ▼3.70 |
Adz Template Settings /wp-admin/edit.php?post_type=adz_ad&page=adz-template-setting | 899 | 2.11 | 27.45 | 25.84 |
All Adz /wp-admin/edit.php?post_type=adz_ad | 1,136 | 2.34 | 34.83 | 28.00 |
Adz Settings /wp-admin/edit.php?post_type=adz_ad&page=_adz_ad_options | 1,124 | 2.38 | 33.57 | 33.09 |
Add New Adz /wp-admin/post-new.php?post_type=adz_ad | 2,407 | 7.93 | 170.02 | 65.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 1,040 | 1,236 | 4,096 |
JavaScript | 3 | 157 | 39 | 1,475 |
CSS | 4 | 96 | 43 | 637 |
Markdown | 2 | 129 | 0 | 565 |
PO File | 1 | 30 | 35 | 82 |
HTML | 2 | 2 | 0 | 33 |
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 code | 0.32 |
Average class complexity | 9.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 10 | 6.90% |
▷ Public methods | 136 | 93.79% |
▷ Protected methods | 9 | 6.21% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 53 | 96.36% |
▷ Anonymous functions | 2 | 3.64% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |