Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.37ms] Passed 4 tests
An overview of server-side resources used by Yonox CF7 DB
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.12 ▼4.73 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.10 ▼15.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.11 ▲1.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.03 ▼18.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.05 ▲1.74 |
Server storage [IO: ▲3.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 237 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Yonox CF7 DB
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.74 ▲0.37 | 1.72 ▲0.07 | 43.69 ▲2.70 |
Dashboard /wp-admin | 2,189 ▲12 | 5.55 ▼0.10 | 95.09 ▲7.56 | 44.05 ▲1.00 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▲0.01 | 34.97 ▼4.09 | 36.94 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.27 ▼0.37 | 634.13 ▼58.50 | 51.06 ▲3.94 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▲0.05 | 105.91 ▼6.04 | 44.04 ▼3.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 74× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\Exception\\ReaderException' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Reader/Exception/NoSheetsFoundException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\ReaderAbstract' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Reader/ODS/Reader.php:13
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Creator\\HelperFactory' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Reader/ODS/Creator/HelperFactory.php:12
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Exception\\SpoutException' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Common/Exception/IOException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\ReaderAbstract' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Reader/CSV/Reader.php:14
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Common\\Creator\\HelperFactory' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Writer/ODS/Creator/HelperFactory.php:17
- > PHP Fatal error
Uncaught Error: Class 'Box\\Spout\\Reader\\Exception\\ReaderException' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Reader/Exception/InvalidValueException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Writer\\Common\\Manager\\WorksheetManagerInterface' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Writer/XLSX/Manager/WorksheetManager.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Writer\\Common\\Manager\\WorksheetManagerInterface' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Writer/ODS/Manager/WorksheetManager.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Box\\Spout\\Reader\\SheetInterface' not found in wp-content/plugins/yonox-contact-form-7-db/Spout/Reader/XLSX/Sheet.php:11
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 19 tag instead of maximum 10
yonox-contact-form-7-db/yonox-cf7-db.php 85% from 13 tests
The principal PHP file in "Yonox CF7 DB" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("yonox-contact-form-7-db.php" instead of "yonox-cf7-db.php")
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
Success! There were no dangerous files found in this plugin14,374 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 151 | 2,265 | 5,963 | 8,064 |
SVG | 4 | 0 | 3 | 4,164 |
CSS | 7 | 39 | 35 | 916 |
JSON | 40 | 0 | 0 | 684 |
JavaScript | 3 | 53 | 64 | 546 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 14 | |
Traits | 1 | |
Classes | 130 | |
▷ Abstract classes | 11 | 8.46% |
▷ Concrete classes | 119 | 91.54% |
▷ Final classes | 0 | 0.00% |
Methods | 801 | |
▷ Static methods | 52 | 6.49% |
▷ Public methods | 539 | 67.29% |
▷ Protected methods | 178 | 22.22% |
▷ Private methods | 84 | 10.49% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 218 | |
▷ Global constants | 6 | 2.75% |
▷ Class constants | 212 | 97.25% |
▷ Public constants | 212 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 1.48MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-3.png | 161.05KB | 50.22KB | ▼ 68.82% |
assets/img/icon-20x20.png | 0.80KB | 1.14KB | 0.00% |
assets/img/screenshot-2.png | 123.71KB | 45.60KB | ▼ 63.13% |
assets/img/banner-1544x500.png | 857.25KB | 262.54KB | ▼ 69.37% |
assets/img/icon-256x256.png | 51.98KB | 31.60KB | ▼ 39.21% |