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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▲3.60ms] Passed 4 tests
An overview of server-side resources used by Pwr-Ads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.61 ▲3.15 | 7,900.96 ▲7,859.17 |
Dashboard /wp-admin | 3.41 ▲0.10 | 57.46 ▲3.88 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.94 ▲4.87 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.38 ▲0.77 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.45 ▲4.89 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 101 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_pwrads_users |
wp_pwrads_ads |
wp_pwrads_token |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_pwrads_sidebar_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Pwr-Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,188 ▲453 | 21.42 ▲7.05 | 52.19 ▲50.43 | 42.03 ▼5.18 |
Dashboard /wp-admin | 2,297 ▲112 | 8.19 ▲3.31 | 145.03 ▲28.05 | 85.31 ▲40.96 |
Posts /wp-admin/edit.php | 2,198 ▲112 | 5.32 ▲3.29 | 65.78 ▲29.20 | 36.80 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,578 ▲59 | 27.01 ▲3.87 | 656.21 ▼16.28 | 35.34 ▼17.43 |
Media Library /wp-admin/upload.php | 1,485 ▲97 | 7.00 ▲2.81 | 135.39 ▲34.62 | 75.84 ▲30.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_pwrads_sidebar_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pwr-ads/uninstall.php
- > /wp-content/plugins/pwr-ads/admin/inc/db.php
- > /wp-content/plugins/pwr-ads/pwr-ads-plugin.php
- > /wp-content/plugins/pwr-ads/frontend/php/test.php
- > /wp-content/plugins/pwr-ads/index.php
- > /wp-content/plugins/pwr-ads/admin/inc/menu.php
- > /wp-content/plugins/pwr-ads/frontend/function.php
- 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/autoadslayouts/header_temp.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/layouts/pop_up_temp.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/script_layouts/screen_pop_up.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/autoadslayouts/float-top-right-temp.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/layouts/float-top-right-temp.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/layouts/float_left_temp.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/script_layouts/top-right-corner.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/autoadslayouts/footer_temp.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pwr-ads/admin/inc/sign_up.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_retrieve_body() in wp-content/plugins/pwr-ads/frontend/layouts/float-top-left-temp.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
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
5 plugin tags: auto ads, earnings, custom ads, script ads, ads
pwr-ads/pwr-ads-plugin.php 92% from 13 tests
"Pwr-Ads" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("pwr-ads.php" instead of "pwr-ads-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,343 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 394 | 120 | 756 |
CSS | 7 | 55 | 62 | 578 |
JavaScript | 11 | 0 | 18 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 10.25 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assests/img/tinymce-icon.png | 1.98KB | 1.30KB | ▼ 34.22% |
(invalid) admin/assests/img/default_img_for_ads.png | 6.37KB | 0.00KB | ▼ 100.00% |
frontend/asst/img/pwr-icon1.png | 3.83KB | 1.74KB | ▼ 54.65% |
frontend/asst/img/pwr-icon.png | 1.95KB | 1.14KB | ▼ 41.74% |
admin/assests/img/pwr-icon.png | 1.95KB | 1.14KB | ▼ 41.74% |