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.14MB] [CPU: ▼10.16ms] Passed 4 tests
Analyzing server-side resources used by Innozilla Skins for Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 22.57 ▼20.12 |
Dashboard /wp-admin | 3.46 ▲0.12 | 50.30 ▼15.28 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 51.31 ▼1.71 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 96.33 ▼3.52 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.27 ▲1.70 |
ICF7 Skins Settings /wp-admin/admin.php?page=icf7s-settings | 3.35 | 34.11 |
Server storage [IO: ▲0.16MB] [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: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Innozilla Skins for Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲188 | 14.14 ▼0.24 | 6.25 ▲4.42 | 40.46 ▼1.71 |
Dashboard /wp-admin | 2,229 ▲41 | 5.11 ▲0.24 | 101.42 ▼14.67 | 41.69 ▼3.60 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.28 ▲0.23 | 38.83 ▼0.39 | 35.68 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.24 ▲4.75 | 670.54 ▲5.01 | 53.07 ▼0.97 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.48 ▲0.33 | 97.34 ▼7.78 | 41.21 ▼4.84 |
ICF7 Skins Settings /wp-admin/admin.php?page=icf7s-settings | 832 | 1.81 | 25.24 | 32.45 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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
Almost there! Just fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/cf7-skins-innozilla/cf7-skins-innozilla.php:19
- > PHP Fatal error
Uncaught Error: Class 'ICF7S_Exception' not found in wp-content/plugins/cf7-skins-innozilla/classes/exceptions/Missing_Dependencies_Exception.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-skins-innozilla/includes/initialize.php:20
- > PHP Fatal error
require_once(): Failed opening required 'ICF7S_PLUGIN_DIR/includes/initialize.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-skins-innozilla/includes/init.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-skins-innozilla/includes/icf7s-admin.php:11
- > PHP Warning
Use of undefined constant ICF7S_PLUGIN_DIR - assumed 'ICF7S_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-skins-innozilla/includes/init.php on line 10
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-skins-innozilla/classes/Setup.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-skins-innozilla/classes/Setup.php on line 5
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cf7-skins-innozilla/classes/Setup.php on line 5
- > PHP Warning
require_once(ICF7S_PLUGIN_DIR/includes/initialize.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-skins-innozilla/includes/init.php on line 10
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #7 (Default Contact form 7 code format) image missing
cf7-skins-innozilla/cf7-skins-innozilla.php 92% from 13 tests
This is the main PHP file of "Innozilla Skins for Contact Form 7" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,853 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 370 | 210 | 1,977 |
PHP | 12 | 196 | 147 | 1,222 |
CSS | 3 | 71 | 33 | 654 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 33.33% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/background.png | 4.96KB | 2.59KB | ▼ 47.82% |