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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.45ms] Passed 4 tests
An overview of server-side resources used by Emercury Extension For Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.98 ▲2.20 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.12 ▼8.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.12 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.26 ▼25.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.81 ▼7.29 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Emercury Extension For Contact Form 7
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.31 | 1.66 ▲0.11 | 43.63 ▲1.75 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.04 | 90.38 ▼4.47 | 38.87 ▼6.44 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.01 | 34.80 ▼1.36 | 33.01 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.30 ▼0.34 | 664.71 ▼15.60 | 61.60 ▲1.42 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.10 | 96.92 ▼9.11 | 44.02 ▼0.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/emercury-extension-for-contact-form-7/includes/system.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/emercury-extension-for-contact-form-7/includes/view.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/emercury-extension-for-contact-form-7/emercury-extension-cf7.php:38
- > PHP Notice
Undefined variable: em_invalid in wp-content/plugins/emercury-extension-for-contact-form-7/includes/view.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emercury-extension-for-contact-form-7/includes/find.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/emercury-extension-for-contact-form-7/includes/view_fields.php:3
- > PHP Warning
Use of undefined constant EMERCURY_EXTENSION_CF7_HELP_URL - assumed 'EMERCURY_EXTENSION_CF7_HELP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/emercury-extension-for-contact-form-7/includes/view.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/emercury-extension-for-contact-form-7/includes/tools.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/emercury-extension-for-contact-form-7/includes/handler.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 to be fixed:
- Screenshots: These screenshots do not have images: #1 (Emercury Settings.), #2 (Emercury API Key.), #3 (Emercury Lists.), #4 (Emercury Mapping.)
emercury-extension-for-contact-form-7/emercury-extension-cf7.php 92% from 13 tests
Analyzing the main PHP file in "Emercury Extension For Contact Form 7" version 1.0.0
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("emercury-extension-for-contact-form-7.php" instead of "emercury-extension-cf7.php")
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
Success! There were no dangerous files found in this plugin1,223 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 306 | 34 | 947 |
CSS | 1 | 44 | 0 | 168 |
JavaScript | 1 | 22 | 0 | 108 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 35 | |
▷ Named functions | 33 | 94.29% |
▷ Anonymous functions | 2 | 5.71% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.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
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 21.55KB | 10.07KB | ▼ 53.26% |
screenshot-1.png | 82.86KB | 34.88KB | ▼ 57.90% |
screenshot-4.png | 60.39KB | 24.55KB | ▼ 59.35% |
screenshot-3.png | 25.51KB | 10.13KB | ▼ 60.29% |