Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/perfit-signup-form/perfit_optin.php+89
Methods with the same name as their class will not be constructors in a future version of PHP; perfit_optin_widget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.66ms] Passed 4 tests
An overview of server-side resources used by Formulario de Perfit Email Marketing
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 9.82 ▼28.70 |
Dashboard /wp-admin | 2.10 ▼1.24 | 5.30 ▼56.77 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.95 ▼39.74 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.87 ▼89.26 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.46 ▼32.88 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_perfit_widget |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Formulario de Perfit Email Marketing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲43 | 13.19 ▼1.17 | 4.78 ▲2.95 | 40.63 ▲0.96 |
Dashboard /wp-admin | 2,231 ▲54 | 5.74 ▲0.09 | 94.68 ▲10.27 | 75.62 ▲31.93 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.26 ▲0.24 | 39.30 ▲1.72 | 39.56 ▲5.18 |
Add New Post /wp-admin/post-new.php | 1,713 ▲177 | 22.72 ▲4.58 | 697.47 ▲49.15 | 27.02 ▼45.00 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.41 ▲0.23 | 100.78 ▲2.93 | 58.91 ▲15.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/perfit-signup-form/perfit_optin.php+89
Methods with the same name as their class will not be constructors in a future version of PHP; perfit_optin_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_perfit_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/perfit-signup-form/tpl/login.php
- > /wp-content/plugins/perfit-signup-form/tpl/shortcode.php
- > /wp-content/plugins/perfit-signup-form/css/perfit-optin.css.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/perfit-signup-form/includes/loader.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/perfit-signup-form/lib/Perfit.php on line 99
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/perfit-signup-form/tpl/list.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/perfit-signup-form/includes/loader.php:12
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/perfit-signup-form/tpl/widget.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/perfit-signup-form/lib/Perfit.php on line 99
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/perfit-signup-form/includes/loader.php:12
- > PHP Notice
Undefined index: button-bg in wp-content/plugins/perfit-signup-form/css/perfit-optin.css.php on line 4
- > PHP Notice
Undefined index: form-text in wp-content/plugins/perfit-signup-form/css/perfit-optin.css.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/perfit-signup-form/tpl/login.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: email, form, subscription, marketing, optin
perfit-signup-form/perfit_optin.php 92% from 13 tests
The principal PHP file in "Formulario de Perfit Email Marketing" v. 2.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("perfit-signup-form.php" instead of "perfit_optin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected610 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 163 | 220 | 607 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 25.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 10.45KB | 4.54KB | ▼ 56.54% |
images/menu-icon.png | 0.43KB | 0.54KB | 0.00% |