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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲1.96ms] Passed 4 tests
Analyzing server-side resources used by Custom Spinner for Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 46.71 ▲10.27 |
Dashboard /wp-admin | 3.41 ▲0.11 | 54.38 ▲4.33 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.02 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.15 ▼1.59 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.87 ▲5.91 |
Server storage [IO: ▲0.08MB] [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: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Custom Spinner for Contact Form 7: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲127 | 13.27 ▼1.02 | 6.02 ▲4.38 | 50.00 ▲10.98 |
Dashboard /wp-admin | 2,243 ▲55 | 5.85 ▲0.98 | 112.01 ▼1.21 | 39.74 ▼5.30 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.03 ▲0.06 | 39.44 ▼0.38 | 31.86 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.04 ▼0.18 | 636.83 ▼15.28 | 51.32 ▲0.86 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.23 ▲0.08 | 97.53 ▼0.66 | 40.93 ▼1.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/cf7-custom-spinner/inc/admin/cf7-custom-spinner-admin-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: contact form, cf7, spinner, custom form, classicpress...
cf7-custom-spinner/cf7-custom-spinner.php Passed 13 tests
The entry point to "Custom Spinner for Contact Form 7" version 2.0.2 is a PHP file that has certain tags in its header comment area
57 characters long description:
Customize the spinning Loader Animation of Contact Form 7
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,568 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 99 | 0 | 890 |
PHP | 13 | 579 | 777 | 648 |
JavaScript | 3 | 10 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 76 | |
▷ Static methods | 1 | 1.32% |
▷ Public methods | 58 | 76.32% |
▷ Protected methods | 2 | 2.63% |
▷ Private methods | 16 | 21.05% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin