Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼105.08ms] Passed 4 tests
A check of server-side resources used by Optin Forms - Simple List Building Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.35 ▲0.51 | 72.45 ▲44.54 |
Dashboard /wp-admin | 3.66 ▲0.59 | 74.58 ▲32.53 |
Posts /wp-admin/edit.php | 3.76 ▲0.65 | 77.78 ▲46.76 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.58 | 120.57 ▼536.81 |
Media Library /wp-admin/upload.php | 3.60 ▲0.59 | 64.72 ▲39.44 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 101 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Optin Forms - Simple List Building Plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲247 | 15.99 ▲0.03 | 8.61 ▲1.83 | 76.08 ▲2.04 |
Dashboard /wp-admin | 2,948 ▲52 | 6.26 ▲0.02 | 113.98 ▼22.13 | 179.37 ▼2.05 |
Posts /wp-admin/edit.php | 2,763 ▲26 | 3.25 ▼0.09 | 62.71 ▼1.38 | 137.18 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,895 ▼1,840 | 15.42 ▼3.05 | 409.45 ▼5.76 | 186.87 ▲20.47 |
Media Library /wp-admin/upload.php | 1,765 ▲13 | 5.57 ▲0.06 | 129.28 ▼10.24 | 203.21 ▲23.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/optin-forms/includes/options-email-solution.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/optin-forms/includes/options-form-1.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optin-forms/includes/register-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optin-forms/includes/functions-form-5.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function optinforms_form3_default_background() in wp-content/plugins/optin-forms/includes/preview-form-3.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/optin-forms/includes/options-form-placement.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optin-forms/includes/functions-form-4.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optin-forms/includes/functions-form-6.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/optin-forms/includes/options-form-5.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/optin-forms/includes/functions-form-2.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Please describe screenshot #4 in optin-forms/assets to your readme.txt
optin-forms/optin-forms.php Passed 13 tests
This is the main PHP file of "Optin Forms - Simple List Building Plugin for WordPress" version 1.2.9.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
133 characters long description:
Create beautiful optin forms with ease. Choose a form design, customize it, and add your form to your blog with a simple mouse-click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,768 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 926 | 616 | 7,001 |
CSS | 3 | 54 | 31 | 418 |
JavaScript | 6 | 46 | 28 | 349 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 303 | |
▷ Named functions | 303 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
54 PNG files occupy 1.01MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/support-convertkit-2-004.png | 5.40KB | 2.69KB | ▼ 50.13% |
images/support-icontact-002.png | 71.00KB | 35.48KB | ▼ 50.03% |
images/support-icontact-007.png | 6.71KB | 3.21KB | ▼ 52.23% |
images/support-icontact-001.png | 17.84KB | 6.71KB | ▼ 62.38% |
images/support-interspire-007.png | 43.57KB | 15.45KB | ▼ 64.55% |