Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼5.26ms] Passed 4 tests
This is a short check of server-side resources used by inboxAds - Monetize Your Emails and Newsletters in Minutes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.42 | 49.19 ▲5.03 |
Dashboard /wp-admin | 3.80 ▲0.41 | 56.10 ▼14.06 |
Posts /wp-admin/edit.php | 3.85 ▲0.45 | 53.58 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.39 | 95.22 ▼8.33 |
Media Library /wp-admin/upload.php | 3.66 ▲0.39 | 41.75 ▲1.51 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
wpr_inboxads_do_activation_redirect |
widget_recent-comments |
widget_recent-posts |
wpr_inboxads_newsletter_domain |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
inboxAds - Monetize Your Emails and Newsletters in Minutes: 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,898 ▲127 | 14.18 ▼0.17 | 1.71 ▼0.31 | 42.74 ▼1.41 |
Dashboard /wp-admin | 2,301 ▲124 | 5.57 ▼0.00 | 86.48 ▼10.99 | 40.15 ▼2.43 |
Posts /wp-admin/edit.php | 2,210 ▲110 | 2.00 ▼0.00 | 35.79 ▼6.13 | 33.73 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.54 ▲0.31 | 685.54 ▲12.53 | 53.67 ▼2.05 |
Media Library /wp-admin/upload.php | 1,510 ▲113 | 4.24 ▲0.06 | 103.84 ▲2.03 | 45.42 ▲3.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- wpr_inboxads_do_activation_redirect
- wpr_inboxads_newsletter_domain
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WPR_ADS_URI - assumed 'WPR_ADS_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/inboxads-monetize-your-emails-and-newsletters-in-minutes/plugins/newsletter/blocks/ads/options.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function WPR\\inboxads_formats() in wp-content/plugins/inboxads-monetize-your-emails-and-newsletters-in-minutes/plugins/newsletter/blocks/ads/block.php:13
- > PHP Warning
Use of undefined constant WPR_ADS_URI - assumed 'WPR_ADS_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/inboxads-monetize-your-emails-and-newsletters-in-minutes/plugins/newsletter/blocks/ads/options.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function WPR\\esc_html_e() in wp-content/plugins/inboxads-monetize-your-emails-and-newsletters-in-minutes/plugins/newsletter/blocks/ads/options.php:16
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: revenue, mailster, alo easymail, newsletter, ads...
inboxads-monetize-your-emails-and-newsletters-in-minutes/inboxads.php 92% from 13 tests
The primary PHP file in "inboxAds - Monetize Your Emails and Newsletters in Minutes" version 1.0.19 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("inboxads-monetize-your-emails-and-newsletters-in-minutes.php" instead of "inboxads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin7,241 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 185 | 92 | 2,241 |
PHP | 13 | 477 | 658 | 2,067 |
CSS | 4 | 91 | 17 | 1,935 |
Sass | 6 | 147 | 14 | 833 |
SVG | 13 | 0 | 0 | 165 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 5 | 7.46% |
▷ Public methods | 67 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
8 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugins/newsletter/blocks/ads/icon.png | 5.16KB | 1.54KB | ▼ 70.07% |
plugins/shortcode-builder/icon.png | 1.40KB | 0.85KB | ▼ 39.26% |
assets/images/newsletter.png | 27.37KB | 5.44KB | ▼ 80.12% |
assets/images/mailster.png | 19.11KB | 2.61KB | ▼ 86.35% |
assets/images/alo-easymail.png | 17.09KB | 1.47KB | ▼ 91.42% |