Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.21ms] Passed 4 tests
A check of server-side resources used by CubeWP Forms - LeadGen & Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.34 ▲1.25 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.62 ▼7.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.40 ▲0.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.54 ▼10.22 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.23 ▲0.49 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for CubeWP Forms - LeadGen & Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.35 ▲0.08 | 1.99 ▲0.22 | 45.09 ▲2.56 |
Dashboard /wp-admin | 2,207 ▲30 | 5.50 ▼0.04 | 84.58 ▼3.66 | 37.47 ▼3.73 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.99 ▲0.02 | 33.49 ▼2.89 | 34.07 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.03 ▲0.02 | 647.54 ▼12.72 | 47.56 ▼7.81 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.28 ▲0.10 | 104.67 ▲9.85 | 48.39 ▲3.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cubewp-forms/cube/functions/functions.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: "NA"
- Tags: You are using too many tags: 13 tag instead of maximum 10
cubewp-forms/cubewp-forms.php Passed 13 tests
Analyzing the main PHP file in "CubeWP Forms - LeadGen & Contact Form" version 1.0.5
75 characters long description:
LeadGen & Contact Form by CubeWP – Drag & Drop Form Builder for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,576 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 208 | 695 | 2,047 |
CSS | 3 | 19 | 3 | 450 |
JavaScript | 2 | 11 | 0 | 79 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 73 | |
▷ Static methods | 34 | 46.58% |
▷ Public methods | 61 | 83.56% |
▷ Protected methods | 7 | 9.59% |
▷ Private methods | 5 | 6.85% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cube/assets/images/cwp-dashboard-leads.png | 9.53KB | 3.95KB | ▼ 58.53% |