Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/campayn-email-newsletter-sign-up/campayn_widget.php+71
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼54.67ms] Passed 4 tests
This is a short check of server-side resources used by Campayn email newsletter sign-up
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.45 ▼36.80 |
Dashboard /wp-admin | 2.20 ▼1.10 | 8.63 ▼50.77 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.33 ▼46.84 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.57 ▼84.26 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 7.89 ▼31.26 |
Campayn /wp-admin/options-general.php?page=ob_campayn | 2.21 | 6.02 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_campayn_forms |
New WordPress options |
---|
theysaidso_admin_options |
campayn_forms_table |
widget_recent-comments |
widget_campayn_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Campayn email newsletter sign-up: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,783 ▲22 | 14.42 ▲0.07 | 1.83 ▼0.27 | 42.16 ▼0.25 |
Dashboard /wp-admin | 2,199 ▲22 | 5.55 ▲0.03 | 81.75 ▼21.74 | 38.47 ▼5.13 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.01 | 38.34 ▲0.70 | 37.59 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 20.86 ▼2.27 | 647.31 ▼55.71 | 53.70 ▼0.18 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.13 ▼0.04 | 103.20 ▼12.94 | 43.50 ▼3.66 |
Campayn /wp-admin/options-general.php?page=ob_campayn | 795 | 2.00 | 23.65 | 29.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/campayn-email-newsletter-sign-up/campayn_widget.php+71
Function create_function() is deprecated
- Zombie tables detected upon uninstall: 1 table
- wp_campayn_forms
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_campayn_widget
- campayn_forms_table
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ob_campayn
- > Deprecated in wp-content/plugins/campayn-email-newsletter-sign-up/campayn_widget.php+71
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=ob_campayn
- > Warning in wp-content/plugins/campayn-email-newsletter-sign-up/campayn.php+185
Use of undefined constant campayn_get_form_message - assumed 'campayn_get_form_message' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=ob_campayn
- > Warning in wp-content/plugins/campayn-email-newsletter-sign-up/campayn.php+299
Use of undefined constant campayn_subscribe - assumed 'campayn_subscribe' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ob_campayn
- > Notice in wp-content/plugins/campayn-email-newsletter-sign-up/campayn_settings.php+124
Trying to access array offset on value of type bool
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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/campayn-email-newsletter-sign-up/campayn_widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/campayn-email-newsletter-sign-up/campayn_widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/campayn-email-newsletter-sign-up/campayn_install.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #5 is missing in campayn-email-newsletter-sign-up/assets to your readme.txt
- Donate link: Invalid URI ("")
campayn-email-newsletter-sign-up/campayn.php 92% from 13 tests
The main file in "Campayn email newsletter sign-up" v. 0.193 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("campayn-email-newsletter-sign-up.php" instead of "campayn.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
Good job! No executable or dangerous file extensions detected671 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 152 | 128 | 671 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 4.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 79.41% |
▷ Protected methods | 5 | 14.71% |
▷ Private methods | 2 | 5.88% |
Functions | 16 | |
▷ Named functions | 16 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.97MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 83.02KB | 29.84KB | ▼ 64.06% |
assets/screenshot-3.png | 104.13KB | 38.10KB | ▼ 63.41% |
assets/banner-772x250.png | 42.19KB | 14.77KB | ▼ 64.99% |
assets/screenshot-6.png | 193.87KB | 68.82KB | ▼ 64.50% |
assets/screenshot-4.png | 116.94KB | 39.68KB | ▼ 66.07% |