Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.12MB] [CPU: ▲5.36ms] Passed 4 tests
This is a short check of server-side resources used by Raptive Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.86 | 49.76 ▲6.53 |
Dashboard /wp-admin | 4.53 ▲1.22 | 54.20 ▲1.28 |
Posts /wp-admin/edit.php | 4.55 ▲1.19 | 61.21 ▲11.16 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.54 | 93.05 ▲2.45 |
Media Library /wp-admin/upload.php | 4.45 ▲1.22 | 47.72 ▲16.22 |
Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 421 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Raptive Ads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 14.34 ▼0.10 | 7.01 ▲5.34 | 44.35 ▲1.28 |
Dashboard /wp-admin | 2,212 ▲35 | 5.59 ▼0.07 | 89.29 ▼10.90 | 40.25 ▼2.95 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 2.04 ▲0.05 | 41.07 ▲1.32 | 34.89 ▲0.88 |
Add New Post /wp-admin/post-new.php | 6,360 ▲4,832 | 20.93 ▼2.55 | 886.47 ▲203.84 | 78.35 ▲15.96 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.37 ▲0.23 | 103.07 ▲2.35 | 46.08 ▼0.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- adthrive_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adthrive-ads/components/ads/partials/insertion-includes.php
- > /wp-content/plugins/adthrive-ads/components/ads/partials/sync-error.php
- 47× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Notice
Undefined variable: body_classes in wp-content/plugins/adthrive-ads/components/ads/partials/insertion-includes.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adthrive-ads/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/adthrive-ads/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > 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 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 plugin_dir_path() in wp-content/plugins/adthrive-ads/uninstall.php:12
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/adthrive-ads/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in adthrive-ads/assets to your readme.txt
adthrive-ads/adthrive-ads.php Passed 13 tests
"Raptive Ads" version 3.5.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
11 characters long description:
Raptive Ads
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin50,088 lines of code in 269 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 86 | 2,719 | 7,607 | 9,651 |
CSS | 15 | 252 | 1,202 | 4,868 |
JavaScript | 16 | 388 | 591 | 1,656 |
Sass | 17 | 305 | 29 | 1,407 |
HTML | 15 | 36 | 77 | 183 |
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.47 |
Average class complexity | 17.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 96 | |
▷ Abstract classes | 9 | 9.38% |
▷ Concrete classes | 87 | 90.62% |
▷ Final classes | 0 | 0.00% |
Methods | 708 | |
▷ Static methods | 102 | 14.41% |
▷ Public methods | 578 | 81.64% |
▷ Protected methods | 94 | 13.28% |
▷ Private methods | 36 | 5.08% |
Functions | 41 | |
▷ Named functions | 37 | 90.24% |
▷ Anonymous functions | 4 | 9.76% |
Constants | 17 | |
▷ Global constants | 10 | 58.82% |
▷ Class constants | 7 | 41.18% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.17MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.18KB | 0.00KB | ▼ 100.00% |
(invalid) cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.16KB | 0.00KB | ▼ 100.00% |
(invalid) cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.14KB | 0.00KB | ▼ 100.00% |
(invalid) cmb2/images/ui-icons_cd0a0a_256x240.png | 7.80KB | 0.00KB | ▼ 100.00% |
assets/banner-1544x500.png | 32.37KB | 13.33KB | ▼ 58.84% |