Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.92ms] Passed 4 tests
Server-side resources used by Contact Form 7 Charts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.86 ▼7.09 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.44 ▼10.37 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.02 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.12 ▼11.83 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 37.31 ▲1.82 |
Server storage [IO: ▲0.02MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Contact Form 7 Charts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲220 | 13.31 ▼1.07 | 4.19 ▲2.00 | 37.94 ▼7.65 |
Dashboard /wp-admin | 2,358 ▲167 | 5.01 ▲0.13 | 112.53 ▲5.04 | 44.38 ▼1.39 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.30 ▲0.30 | 39.85 ▲1.98 | 37.43 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,537 ▲15 | 23.66 ▲0.40 | 696.05 ▲60.76 | 54.42 ▲1.76 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.36 ▲0.15 | 115.43 ▲14.98 | 43.35 ▼0.34 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-charts/cf7charts.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Admin dashboard widget showing six-month and one-month (daily) trend charts of Contact Form 7 activity by form, similar to Google Analytics trendcharts.), #2 (Admin dashboard widget showing the one-month pie chart of combined Contact Form 7 activity by form.)
contact-form-7-charts/cf7charts.php 77% from 13 tests
The main PHP file in "Contact Form 7 Charts" ver. 1.0 8/1/13... adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.0 8/1/13...")
- Main file name: The principal plugin file should be the same as the plugin slug ("contact-form-7-charts.php" instead of "cf7charts.php")
- Description: The description should be shorter than 140 characters (currently 278 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected401 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 107 | 24 | 325 |
CSS | 1 | 16 | 7 | 76 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin