Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼2.12MB] [CPU: ▼378.39ms] Passed 4 tests
This is a short check of server-side resources used by AdThrive Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.31 | 7.10 ▼43.89 |
Dashboard /wp-admin | 2.28 ▼1.13 | 8.33 ▼25.11 |
Posts /wp-admin/edit.php | 2.29 ▼1.36 | 7.71 ▼29.85 |
Add New Post /wp-admin/post-new.php | 2.28 ▼4.69 | 8.14 ▼1,414.72 |
Media Library /wp-admin/upload.php | 2.29 ▼1.01 | 7.03 ▼17.09 |
Server storage [IO: ▲2.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 411 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for AdThrive Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲74 | 16.01 ▼0.06 | 10.46 ▲4.75 | 3.32 ▲0.48 |
Dashboard /wp-admin | 2,916 ▲62 | 6.18 ▲0.03 | 123.82 ▼6.16 | 157.96 ▲1.05 |
Posts /wp-admin/edit.php | 2,719 ▲25 | 3.27 ▲0.03 | 64.90 ▲0.26 | 137.35 ▼7.18 |
Add New Post /wp-admin/post-new.php | 1,899 ▲238 | 17.86 ▼4.89 | 404.30 ▼52.92 | 189.72 ▲32.47 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.58 ▲0.06 | 141.51 ▼1.86 | 187.66 ▲0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
file_get_contents(wp-content/plugins/adthrive-ads/site.js): failed to open stream: No such file or directory
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/adthrive-ads/components/ads/partials/insertion-includes.php
- 47× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/adthrive-ads/components/ads/partials/insertion-includes.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adthrive-ads/cmb2/includes/helper-functions.php:131
- > PHP Notice
Undefined variable: data in wp-content/plugins/adthrive-ads/components/ads/partials/insertion-includes.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/adthrive-ads/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function AdThrive_Ads\\add_action() in wp-content/plugins/adthrive-ads/class-main.php:21
- > PHP Notice
Undefined variable: body_classes in wp-content/plugins/adthrive-ads/components/ads/partials/insertion-includes.php on line 35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in adthrive-ads/assets to your readme.txt
adthrive-ads/adthrive-ads.php Passed 13 tests
The main PHP script in "AdThrive Ads" version 1.1.4 is automatically included on every request by WordPress
12 characters long description:
AdThrive Ads
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected48,957 lines of code in 259 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 78 | 2,493 | 6,954 | 8,608 |
CSS | 15 | 252 | 1,202 | 4,868 |
JavaScript | 14 | 373 | 591 | 1,568 |
Sass | 17 | 305 | 29 | 1,407 |
HTML | 15 | 36 | 77 | 183 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 9 | 10.84% |
▷ Concrete classes | 74 | 89.16% |
▷ Final classes | 0 | 0.00% |
Methods | 636 | |
▷ Static methods | 91 | 14.31% |
▷ Public methods | 522 | 82.08% |
▷ Protected methods | 89 | 13.99% |
▷ Private methods | 25 | 3.93% |
Functions | 40 | |
▷ Named functions | 37 | 92.50% |
▷ Anonymous functions | 3 | 7.50% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.13MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
assets/screenshot-2.png | 8.79KB | 4.70KB | ▼ 46.49% |
cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |