Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.77ms] Passed 4 tests
An overview of server-side resources used by Ads Campaigns
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.76 ▲1.70 |
Dashboard /wp-admin | 3.38 ▲0.04 | 53.09 ▼4.56 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.04 ▲4.24 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.40 ▼27.25 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 34.14 ▼0.96 |
Create a Google Ad /wp-admin/admin.php?page=ads-campaigns-create-google-ad | 3.25 | 28.29 |
Create a Facebook Ad /wp-admin/admin.php?page=ads-campaigns-create-facebook-ad | 3.25 | 29.49 |
Ads Dashboard /wp-admin/admin.php?page=ads-campaigns-dashboard | 3.25 | 29.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Ads Campaigns: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.25 ▼0.37 | 1.67 ▼0.28 | 38.73 ▼2.16 |
Dashboard /wp-admin | 2,224 ▲56 | 5.61 ▼0.02 | 84.87 ▼5.05 | 98.15 ▲48.29 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.00 ▼0.00 | 37.10 ▼3.00 | 33.90 ▼0.88 |
Add New Post /wp-admin/post-new.php | 6,311 ▲4,794 | 20.50 ▲6.09 | 941.08 ▲506.61 | 66.04 ▲20.78 |
Media Library /wp-admin/upload.php | 1,420 ▲26 | 4.19 ▼0.02 | 102.30 ▲7.41 | 69.21 ▲27.28 |
Create a Google Ad /wp-admin/admin.php?page=ads-campaigns-create-google-ad | 835 | 2.73 | 27.78 | 26.04 |
Create a Facebook Ad /wp-admin/admin.php?page=ads-campaigns-create-facebook-ad | 838 | 2.73 | 28.46 | 25.73 |
Ads Dashboard /wp-admin/admin.php?page=ads-campaigns-dashboard | 835 | 2.71 | 28.47 | 28.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ads-campaigns-create-facebook-ad
- > Notice in wp-content/plugins/ads-campaigns/menu.php+73
Undefined index: post_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ads-campaigns-create-facebook-ad
- > Notice in wp-content/plugins/ads-campaigns/wishpond-ads-helpers.php+27
Trying to get property 'post_content' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ads-campaigns-create-facebook-ad
- > Notice in wp-content/plugins/ads-campaigns/wishpond-ads-helpers.php+44
Undefined variable: out
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ads-campaigns-dashboard
- > Notice in wp-content/plugins/ads-campaigns/menu.php+61
Undefined variable: html
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ads-campaigns/ads-campaigns.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-campaigns/register-assets.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-campaigns/meta-boxes.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ads-campaigns/menu.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ads-campaigns-dashboard
- > Security (severe) in unknown
security - Refused to frame 'https://www.wishpond.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 71 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #5, #6, #7, #8 in ads-campaigns/assets to your readme.txt
- Donate link: Please fix this invalid url: "N/A"
ads-campaigns/ads-campaigns.php Passed 13 tests
The main PHP file in "Ads Campaigns" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
Create Ads with Google Adwords and Facebook Ads from Wordpress!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin582 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 86 | 88 | 479 |
JavaScript | 2 | 7 | 44 | 94 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 15 | 60.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/ajax-loader.png | 13.65KB | 0.00KB | ▼ 100.00% |
assets/images/fb-ads.png | 3.32KB | 0.68KB | ▼ 79.37% |