Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼291.92ms] Passed 4 tests
Analyzing server-side resources used by Admin side data storage for Contact Form 7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.05 ▲5.92 |
Dashboard /wp-admin | 3.41 ▲0.00 | 34.44 ▲0.53 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 38.13 ▲3.50 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 93.09 ▼1,171.06 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.14 ▼0.63 |
ASDS CF7 /wp-admin/admin.php?page=zt-dcfcf-list | 3.10 | 18.19 |
Settings /wp-admin/admin.php?page=zt-dcfcf-settings | 3.10 | 18.15 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin side data storage for Contact Form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,814 ▲92 | 15.56 ▼0.15 | 6.18 ▲0.18 | 2.05 ▼0.05 |
Dashboard /wp-admin | 2,881 ▲23 | 6.19 ▲0.04 | 118.21 ▼20.04 | 151.86 ▼10.29 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.23 ▼0.01 | 67.14 ▲3.15 | 141.04 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.50 ▲0.18 | 430.48 ▲16.70 | 150.39 ▼17.84 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▲0.02 | 147.09 ▲4.51 | 188.28 ▲1.96 |
ASDS CF7 /wp-admin/admin.php?page=zt-dcfcf-list | 28 | 0.94 | 0.04 | 16.61 |
Settings /wp-admin/admin.php?page=zt-dcfcf-settings | 28 | 0.94 | 0.03 | 17.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/admin-side-data-storage-for-contact-form-7/inc/admin/class.wp.list.table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/admin-side-data-storage-for-contact-form-7/inc/admin/class.wp.list.table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/admin-side-data-storage-for-contact-form-7/inc/admin/inc/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/admin-side-data-storage-for-contact-form-7/inc/admin/assets/fpdf/exfpdf.php:11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/admin-side-data-storage-for-contact-form-7/inc/admin/class.wp.list.table.php on line 4
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=zt-dcfcf-list
- > Network (severe)
wp-admin/admin.php?page=zt-dcfcf-list - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=zt-dcfcf-settings
- > Network (severe)
wp-admin/admin.php?page=zt-dcfcf-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
admin-side-data-storage-for-contact-form-7/asds-cf7.php 85% from 13 tests
"Admin side data storage for Contact Form 7" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-side-data-storage-for-contact-form-7.php" instead of "asds-cf7.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected6,446 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 525 | 502 | 5,648 |
Markdown | 1 | 358 | 0 | 594 |
CSS | 2 | 45 | 8 | 129 |
JavaScript | 1 | 8 | 0 | 75 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 88.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 210 | |
▷ Static methods | 12 | 5.71% |
▷ Public methods | 134 | 63.81% |
▷ Protected methods | 52 | 24.76% |
▷ Private methods | 24 | 11.43% |
Functions | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
Constants | 17 | |
▷ Global constants | 10 | 58.82% |
▷ Class constants | 7 | 41.18% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin