Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.91ms] Passed 4 tests
This is a short check of server-side resources used by Conditionally Load CF7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.62 ▼4.60 |
Dashboard /wp-admin | 3.42 ▲0.08 | 50.54 ▼12.55 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.86 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 93.01 ▼4.99 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 34.78 ▼0.20 |
Conditionally Load CF7 /wp-admin/options-general.php?page=cf7-conditional-load | 3.31 | 35.74 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Conditionally Load CF7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.32 ▲0.03 | 1.87 ▲0.15 | 40.37 ▼4.35 |
Dashboard /wp-admin | 2,199 ▲25 | 5.57 ▲0.00 | 91.98 ▼2.72 | 40.60 ▼7.49 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.01 | 40.95 ▼0.48 | 35.79 ▲2.01 |
Add New Post /wp-admin/post-new.php | 6,231 ▲4,705 | 25.81 ▲2.75 | 861.40 ▲211.63 | 60.71 ▲9.21 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▼0.04 | 98.54 ▼6.00 | 43.34 ▲0.61 |
Conditionally Load CF7 /wp-admin/options-general.php?page=cf7-conditional-load | 873 | 1.99 | 26.64 | 30.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: scripts, javascript, styles, contact form 7, speed...
cf7-conditional-load/cf7-conditional-load.php 85% from 13 tests
The main file in "Conditionally Load CF7" v. 1.0.40 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 217 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected675 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 117 | 313 | 461 |
Markdown | 1 | 109 | 0 | 205 |
CSS | 2 | 2 | 1 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.85MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/page-slug-1024x202.png | 26.91KB | 25.01KB | ▼ 7.07% |
images/page-slug-768x152.png | 17.96KB | 16.43KB | ▼ 8.54% |
(invalid) images/page-slug-586x116.png | 11.23KB | 0.00KB | ▼ 100.00% |
images/meta-box-768x743.png | 117.08KB | 40.28KB | ▼ 65.60% |
images/page-id-300x143.png | 7.76KB | 8.24KB | 0.00% |