Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.44MB] [CPU: ▲0.75ms] Passed 4 tests
A check of server-side resources used by Simple Coherent Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.46 | 44.60 ▲4.03 |
Dashboard /wp-admin | 4.76 ▲1.41 | 55.16 ▼3.65 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 56.32 ▲5.69 |
Add New Post /wp-admin/post-new.php | 7.32 ▲1.43 | 96.37 ▼3.07 |
Media Library /wp-admin/upload.php | 4.68 ▲1.45 | 42.77 ▲13.14 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Simple Coherent Form: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲30 | 14.70 ▲0.46 | 1.59 ▼0.22 | 39.15 ▼4.72 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.09 | 94.71 ▼7.99 | 41.99 ▲0.35 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.94 ▼0.03 | 38.53 ▲1.45 | 35.90 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.63 ▲0.29 | 619.71 ▲20.89 | 50.00 ▲3.15 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.13 | 96.18 ▼2.34 | 41.92 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Even though no errors were found, 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function SCF\\Plugins\\add_filter() in wp-content/plugins/simple-coherent-form/plugins/cf7.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
simple-coherent-form/simple-coherent-form.php Passed 13 tests
The main PHP script in "Simple Coherent Form" version 1.3.4 is automatically included on every request by WordPress
48 characters long description:
Create coherent input between themes and plugins
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,356 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,026 | 1,284 | 3,717 |
JavaScript | 6 | 752 | 852 | 2,857 |
CSS | 2 | 389 | 164 | 2,461 |
PO File | 1 | 133 | 143 | 320 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 494)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.86 |
Average class complexity | 99.81 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 612.00 |
Average method complexity | 10.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 494.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 9 | 6.00% |
▷ Public methods | 147 | 98.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.00% |
Functions | 18 | |
▷ Named functions | 2 | 11.11% |
▷ Anonymous functions | 16 | 88.89% |
Constants | 9 | |
▷ Global constants | 9 | 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
3 compressed PNG files occupy 0.18MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flags-4.png | 119.01KB | 125.30KB | 0.00% |
assets/img/flags-2.png | 44.80KB | 47.08KB | 0.00% |
assets/img/flags.png | 21.11KB | 22.31KB | 0.00% |