Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'TJC_Init' not found
Server metrics [RAM: ▲1.12MB] [CPU: ▲4.94ms] Passed 4 tests
A check of server-side resources used by WpCoolForm
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.24 | 54.60 ▲6.93 |
Dashboard /wp-admin | 4.69 ▲1.13 | 60.23 ▲1.42 |
Posts /wp-admin/edit.php | 4.74 ▲1.06 | 59.61 ▲7.40 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.15 | 110.23 ▲4.00 |
Media Library /wp-admin/upload.php | 4.61 ▲1.13 | 49.91 ▲14.00 |
FAQ /wp-admin/admin.php?page=wcf_faq | 4.58 | 41.82 |
WpCoolForm /wp-admin/admin.php?page=wcf_main_menu_item | 4.58 | 41.41 |
New formular /wp-admin/admin.php?page=wcf_new_form_menu_item | 4.58 | 41.15 |
WpCoolForm /wp-admin/options-general.php?page=my-setting-admin | 4.58 | 40.79 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 227 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WpCoolForm
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 14.00 ▼0.35 | 18.39 ▲16.50 | 49.76 ▲3.25 |
Dashboard /wp-admin | 2,263 ▲89 | 5.67 ▲0.08 | 88.90 ▼3.64 | 46.22 ▲4.53 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 2.06 ▼0.08 | 36.22 ▼2.71 | 41.16 ▲8.66 |
Add New Post /wp-admin/post-new.php | 1,613 ▲73 | 22.81 ▼0.38 | 553.04 ▼125.61 | 36.98 ▼17.15 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.24 ▲0.06 | 101.77 ▼19.18 | 44.50 ▼0.00 |
FAQ /wp-admin/admin.php?page=wcf_faq | 887 | 2.06 | 26.48 | 30.19 |
WpCoolForm /wp-admin/admin.php?page=wcf_main_menu_item | 886 | 2.06 | 25.13 | 27.91 |
New formular /wp-admin/admin.php?page=wcf_new_form_menu_item | 889 | 2.06 | 25.56 | 29.56 |
WpCoolForm /wp-admin/options-general.php?page=my-setting-admin | 890 | 2.07 | 27.01 | 28.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'TJC_Init' not found
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpcoolform/ext/create_img.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/wpcoolform/php/wp/wcf_formular_table_handler.php on line 4
- > PHP Warning
imagecreatefrompng(.png): failed to open stream: No such file or directory in wp-content/plugins/wpcoolform/php/util/wcf_captcha.php on line 54
- > PHP Warning
imagepng() expects parameter 1 to be resource, bool given in wp-content/plugins/wpcoolform/php/util/wcf_captcha.php on line 56
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcoolform/php/wp/wcf_formular_table_handler.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpcoolform/php/wp/wcf_formular_table_handler.php on line 4
- > PHP Notice
Undefined index: captcha in wp-content/plugins/wpcoolform/php/util/wcf_captcha.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #6 (wpcf_settings3.png shows some more setting options.), #7 (wpcf_settings4.png shows the form builder on the settings page.)
wpcoolform/WpCoolForm.php 92% from 13 tests
"WpCoolForm" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpcoolform.php" instead of "WpCoolForm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin11,651 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 725 | 969 | 4,244 |
CSS | 4 | 92 | 13 | 2,574 |
Sass | 13 | 28 | 24 | 1,560 |
LESS | 13 | 28 | 34 | 1,550 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 2 | 113 | 41 | 601 |
INI | 2 | 97 | 0 | 278 |
HTML | 3 | 28 | 5 | 189 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 14.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 361 | |
▷ Static methods | 24 | 6.65% |
▷ Public methods | 290 | 80.33% |
▷ Protected methods | 8 | 2.22% |
▷ Private methods | 63 | 17.45% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 24 | 100.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
100 PNG files occupy 1.27MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
php/util/48.png | 1.68KB | 1.03KB | ▼ 38.64% |
php/util/33.png | 1.74KB | 1.08KB | ▼ 37.84% |
php/util/26.png | 1.73KB | 1.04KB | ▼ 40.00% |
php/util/18.png | 1.75KB | 1.09KB | ▼ 37.79% |
php/util/72.png | 1.81KB | 1.13KB | ▼ 37.72% |