Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.53MB] [CPU: ▲5.34ms] Passed 4 tests
This is a short check of server-side resources used by Rate limiting for Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 40.18 ▼0.28 |
Dashboard /wp-admin | 3.90 ▲0.59 | 50.26 ▲4.62 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 55.56 ▲7.57 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.53 | 102.21 ▲9.45 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 44.10 ▲12.76 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.01 | 36.30 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 182 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_wpcf7rl |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
fs_accounts |
wpcf7rl_db_version |
widget_theysaidso_widget |
wpcf7rl_activated |
fs_debug_mode |
widget_recent-comments |
can_compress_scripts |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Rate limiting for Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.19 ▼1.21 | 1.75 ▼0.00 | 32.55 ▼9.92 |
Dashboard /wp-admin | 2,224 ▲33 | 4.86 ▼0.02 | 110.70 ▲10.99 | 44.56 ▼1.50 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.05 ▲0.07 | 40.49 ▲2.85 | 39.71 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 18.60 ▼4.68 | 606.74 ▼16.53 | 51.01 ▼1.22 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.23 ▲0.00 | 102.97 ▼0.29 | 46.58 ▲1.18 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,078 | 1.68 | 23.34 | 27.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/rate-limiting-for-contact-form-7/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 1 table
- wp_wpcf7rl
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- wpcf7rl_db_version
- fs_accounts
- fs_active_plugins
- db_upgraded
- fs_debug_mode
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Admin settings screen can be found under the Contact main menu item.) image missing
rate-limiting-for-contact-form-7/cf7-ratelimit.php 92% from 13 tests
This is the main PHP file of "Rate limiting for Contact Form 7" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("rate-limiting-for-contact-form-7.php" instead of "cf7-ratelimit.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected33,482 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 8,007 | 17,229 | 33,223 |
JavaScript | 3 | 34 | 59 | 194 |
PO File | 1 | 12 | 5 | 52 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 91.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,268 | |
▷ Static methods | 197 | 15.54% |
▷ Public methods | 879 | 69.32% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.34% |
Functions | 111 | |
▷ Named functions | 111 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/screenshot-1.png | 20.11KB | 8.38KB | ▼ 58.31% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |