Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/wp-ads-within-contents/wp-ads-within-contents.php+19
Use of undefined constant WPAdsWithinContents - assumed 'WPAdsWithinContents' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.00ms] Passed 4 tests
This is a short check of server-side resources used by WP Ads Within Contens
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.23 ▼35.75 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.47 ▼42.16 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.03 ▼38.88 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.54 ▼91.21 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.62 ▼27.57 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
wp_ads_within_contents_options |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Ads Within Contens
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.84 ▲0.46 | 1.70 ▼0.05 | 45.40 ▲5.35 |
Dashboard /wp-admin | 2,210 ▲25 | 5.86 ▲0.01 | 107.15 ▲10.54 | 37.42 ▼8.51 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.03 | 40.47 ▲2.67 | 34.13 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.14 ▲0.14 | 672.92 ▲20.89 | 57.29 ▲0.87 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.04 | 107.31 ▲13.36 | 47.52 ▲5.91 |
Ads Within Contents /wp-admin/wp-ads-within-contents.php | 26 | 0.44 | 0.07 | 12.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-ads-within-contents/wp-ads-within-contents.php+19
Use of undefined constant WPAdsWithinContents - assumed 'WPAdsWithinContents' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- wp_ads_within_contents_options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-ads-within-contents/wp-ads-within-contents.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/wp-ads-within-contents/wp-ads-within-contents-admin-options.php on line 83
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-ads-within-contents/wp-ads-within-contents-admin-options.php:85
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/wp-ads-within-contents.php
- > Network (severe)
wp-admin/wp-ads-within-contents.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Admin Panel Setting), #2 (WP Ads Within Contents)
wp-ads-within-contents/wp-ads-within-contents.php 92% from 13 tests
The primary PHP file in "WP Ads Within Contens" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
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
No dangerous file extensions were detected364 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 11 | 364 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 212.61KB | 84.16KB | ▼ 60.42% |
screenshot-1.png | 47.35KB | 16.95KB | ▼ 64.21% |