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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.05ms] Passed 4 tests
Server-side resources used by Contact Form 7 - Paystack Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.08 ▼1.14 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.09 ▲1.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.73 ▲3.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.32 ▼5.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.60 ▼2.56 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
cf7ps_options |
Browser metrics Passed 4 tests
Checking browser requirements for Contact Form 7 - Paystack Add-on
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.21 ▼1.17 | 1.65 ▼0.15 | 40.00 ▼4.71 |
Dashboard /wp-admin | 2,214 ▲29 | 4.84 ▼1.03 | 109.44 ▲1.94 | 42.85 ▼3.53 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 1.98 ▼0.01 | 40.05 ▲1.28 | 36.93 ▲3.74 |
Add New Post /wp-admin/post-new.php | 1,553 ▲39 | 18.11 ▲0.66 | 641.08 ▼30.99 | 50.89 ▼16.30 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.10 ▼0.09 | 105.81 ▼8.33 | 44.21 ▼6.40 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- cf7ps_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cf7-paystack-add-on/cf7ps.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/cf7-paystack-add-on/includes/redirect.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: contact form 7, paystack donation addon, paystack, contact form
cf7-paystack-add-on/cf7ps.php 85% from 13 tests
The primary PHP file in "Contact Form 7 - Paystack Add-on" version 1.2.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("cf7-paystack-add-on.php" instead of "cf7ps.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin552 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 194 | 64 | 468 |
JavaScript | 2 | 9 | 1 | 48 |
Markdown | 1 | 20 | 0 | 32 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 17 | |
▷ Named functions | 17 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/paystack.png | 9.38KB | 4.75KB | ▼ 49.38% |
assets/img/email-field.png | 50.68KB | 21.79KB | ▼ 56.99% |
assets/img/paystack account.PNG | 36.04KB | 16.89KB | ▼ 53.13% |
assets/img/paystack details on contact form 7.PNG | 31.85KB | 16.23KB | ▼ 49.03% |
images/paystack_secure.png | 4.03KB | 3.84KB | ▼ 4.63% |