Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼6.81ms] Passed 4 tests
This is a short check of server-side resources used by Setupad WP Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 45.76 ▲6.12 |
Dashboard /wp-admin | 3.57 ▲0.22 | 45.35 ▼17.02 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 45.79 ▼1.98 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 82.42 ▼5.51 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 35.14 ▼2.72 |
Related Posts /wp-admin/admin.php?page=stpd-related-posts | 3.55 | 37.07 |
Add new /wp-admin/admin.php?page=stpd-new_ad | 4.02 | 37.71 |
Ads.txt /wp-admin/admin.php?page=stpd-ads_txt | 3.46 | 31.83 |
Header/Footer /wp-admin/admin.php?page=stpd-header-footer | 3.46 | 31.94 |
My ads /wp-admin/admin.php?page=setupad | 3.59 | 34.56 |
Server storage [IO: ▲9.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 490 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_setupad_ads_txt |
wp_setupad_settings |
wp_setupad |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
setupad_db_version |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Setupad WP Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.81 ▼0.54 | 8.55 ▲6.90 | 45.05 ▲2.45 |
Dashboard /wp-admin | 2,251 ▲70 | 5.62 ▼0.06 | 88.16 ▼15.10 | 38.70 ▼2.84 |
Posts /wp-admin/edit.php | 2,162 ▲62 | 1.97 ▼0.05 | 35.25 ▼1.78 | 30.75 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.13 ▲0.19 | 690.07 ▼22.65 | 52.72 ▲0.96 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.27 ▲0.09 | 95.11 ▼16.36 | 44.06 ▲1.30 |
Related Posts /wp-admin/admin.php?page=stpd-related-posts | 1,616 | 3.10 | 75.74 | 37.52 |
Add new /wp-admin/admin.php?page=stpd-new_ad | 3,421 | 3.66 | 84.81 | 69.59 |
Ads.txt /wp-admin/admin.php?page=stpd-ads_txt | 952 | 2.01 | 23.57 | 35.50 |
Header/Footer /wp-admin/admin.php?page=stpd-header-footer | 1,117 | 3.27 | 69.70 | 38.39 |
My ads /wp-admin/admin.php?page=setupad | 1,002 | 1.81 | 24.45 | 29.02 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- setupad_db_version
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 70× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/setupad/admin/includes/database/create-update-related-posts.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/setupad/public/includes/related-posts.php:105
- > PHP Warning
array_search() expects parameter 2 to be array, null given in wp-content/plugins/setupad/admin/includes/forms/setupad-related-posts-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/setupad/public/includes/ad-placement/after-post.php:20
- > PHP Warning
include_once(): Failed opening 'SETUPAD_BASE_PATHpublic/includes/helper-functions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/setupad/public/includes/ad-placement/the-content.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/setupad/public/includes/ad-placement/before-after-excerpt.php:48
- > PHP Warning
Use of undefined constant SETUPAD_BASE_PATH - assumed 'SETUPAD_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/setupad/public/includes/ad-placement/sidebar-bottom.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_charset_collate() on null in wp-content/plugins/setupad/admin/includes/database/setupad-tables-upgrade.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/setupad/public/includes/add-setupad-shortcode.php:19
- > PHP Warning
Use of undefined constant SETUPAD_BASE_PATH - assumed 'SETUPAD_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/setupad/public/includes/ad-placement/in-footer.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: ads, advertising, ad manager, wordpress ads, adsense...
setupad/setupad.php 92% from 13 tests
The entry point to "Setupad WP Ads" version 1.4.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin11,027 lines of code in 486 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 890 | 822 | 5,418 |
JavaScript | 447 | 599 | 57 | 4,100 |
CSS | 2 | 160 | 23 | 1,259 |
Markdown | 1 | 113 | 0 | 233 |
SVG | 2 | 0 | 1 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.82 |
Average class complexity | 52.50 |
▷ Minimum class complexity | 48.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 7 | 16.67% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 2 | 4.76% |
▷ Private methods | 1 | 2.38% |
Functions | 65 | |
▷ Named functions | 57 | 87.69% |
▷ Anonymous functions | 8 | 12.31% |
Constants | 10 | |
▷ Global constants | 6 | 60.00% |
▷ Class constants | 4 | 40.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/plugin_logo.png | 0.75KB | 0.76KB | 0.00% |