Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/retainly/dashboard/includes/options_config.php+47
sizeof(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲1.36MB] [CPU: ▲5.78ms] Passed 4 tests
Server-side resources used by Retainly Optin Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.91 ▲1.44 | 51.75 ▲10.63 |
Dashboard /wp-admin | 4.67 ▲1.37 | 55.79 ▲6.27 |
Posts /wp-admin/edit.php | 4.72 ▲1.37 | 58.69 ▲13.11 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.31 | 90.40 ▼6.90 |
Media Library /wp-admin/upload.php | 4.60 ▲1.37 | 53.34 ▲15.28 |
Resources /wp-admin/admin.php?page=rad_rapidology_options | 4.72 | 44.10 |
Server storage [IO: ▲3.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 341 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_rad_rapidology_stats |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
rad_rapidology_stats_cache |
widget_rapidology |
rad_rapidology_activated |
rad_rapidology_options |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Retainly Optin Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,026 ▲255 | 13.82 ▼0.57 | 11.58 ▲9.60 | 43.84 ▼0.23 |
Dashboard /wp-admin | 2,252 ▲60 | 4.86 ▼0.10 | 98.37 ▼12.45 | 39.87 ▼0.79 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.03 ▲0.02 | 39.98 ▲2.57 | 35.25 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 17.76 ▼5.64 | 598.82 ▼80.85 | 55.04 ▼0.17 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.24 ▲0.06 | 99.31 ▲1.22 | 44.84 ▲0.04 |
Optin Forms /wp-admin/admin.php?page=rad_rapidology_options#tab_rad_dashboard_tab_content_header_home | 4,304 | 6.50 | 141.58 | 76.94 |
Email Accounts /wp-admin/admin.php?page=rad_rapidology_options#tab_rad_dashboard_tab_content_header_accounts | 4,309 | 6.48 | 121.26 | 31.22 |
Resources /wp-admin/admin.php?page=rad_rapidology_options | 4,294 | 6.49 | 108.77 | 43.98 |
Statistics /wp-admin/admin.php?page=rad_rapidology_options#tab_rad_dashboard_tab_content_header_stats | 4,680 | 7.99 | 196.98 | 97.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_rad_rapidology_stats
- Zombie WordPress options were found after uninstall: 11 options
- widget_recent-comments
- rad_rapidology_stats_cache
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- rad_rapidology_options
- rad_rapidology_activated
- widget_rapidology
- rapidology_update_source
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=rad_rapidology_options
- > Notice in wp-content/plugins/retainly/dashboard/dashboard.php+1098
Undefined index: rows
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/retainly/includes/static_content/marketing.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'RAD_RAPIDOLOGY_PLUGIN_DIRrapidology.php' (include_path='.:/usr/share/php') in wp-content/plugins/retainly/includes/classes/integrations/class.rapidology-retainly.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/retainly/dashboard/includes/options_config.php:16
- > PHP Warning
require_once(RAD_RAPIDOLOGY_PLUGIN_DIRrapidology.php): failed to open stream: No such file or directory in wp-content/plugins/retainly/includes/classes/integrations/class.rapidology-retainly.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/retainly/includes/rapidology_functions.php:15
- > PHP Warning
Use of undefined constant RAD_PLUGIN_IMAGE_DIR - assumed 'RAD_PLUGIN_IMAGE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/retainly/includes/static_content/marketing.php on line 3
- > PHP Warning
Use of undefined constant RAD_RAPIDOLOGY_PLUGIN_DIR - assumed 'RAD_RAPIDOLOGY_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/retainly/includes/classes/integrations/class.rapidology-retainly.php on line 3
- > PHP Warning
Use of undefined constant RAD_PLUGIN_IMAGE_DIR - assumed 'RAD_PLUGIN_IMAGE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/retainly/includes/static_content/marketing_sidebar.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/retainly/includes/ext/rapidology_rapidbar/class.rapidology_rapidbar.php:6
- > 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 errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
retainly/retainly.php Passed 13 tests
The main PHP script in "Retainly Optin Forms" version 1.4 is automatically included on every request by WordPress
83 characters long description:
This plugin helps capture subscribers from your wordpress to your list in retainly.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected35,979 lines of code in 253 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 164 | 304 | 156 | 18,782 |
PHP | 16 | 1,314 | 799 | 10,140 |
JavaScript | 54 | 546 | 143 | 3,216 |
CSS | 12 | 463 | 139 | 2,984 |
PO File | 1 | 321 | 334 | 687 |
Bourne Shell | 1 | 20 | 6 | 94 |
Markdown | 2 | 35 | 0 | 49 |
XML | 1 | 0 | 0 | 14 |
HTML | 1 | 0 | 0 | 8 |
JSON | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 189)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 187.88 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 888.00 |
Average method complexity | 9.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 189.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 20 | 11.43% |
▷ Public methods | 171 | 97.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.29% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 0.41MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/premade-image-04.png | 5.75KB | 2.65KB | ▼ 53.81% |
images/premade-image-10.png | 4.07KB | 2.28KB | ▼ 44.02% |
images/premade-image-16.png | 21.72KB | 8.32KB | ▼ 61.69% |
images/premade-image-01.png | 3.33KB | 1.88KB | ▼ 43.49% |
images/premade-image-08.png | 3.92KB | 2.05KB | ▼ 47.79% |