Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▲2.26ms] Passed 4 tests
An overview of server-side resources used by Fast Secure Contact Form Newsletter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.84 | 55.00 ▲13.81 |
Dashboard /wp-admin | 4.15 ▲0.84 | 47.63 ▲1.33 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 51.66 ▲7.17 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.77 | 97.33 ▼1.04 |
Media Library /wp-admin/upload.php | 4.01 ▲0.77 | 35.97 ▲1.58 |
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: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Fast Secure Contact Form Newsletter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.17 ▼0.18 | 1.97 ▲0.35 | 39.41 ▼3.98 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.11 | 81.24 ▼4.63 | 38.80 ▲2.40 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.06 | 39.67 ▼0.06 | 36.08 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.26 ▼0.65 | 676.46 ▲17.05 | 61.78 ▲11.25 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.12 ▼0.05 | 96.68 ▼0.15 | 41.35 ▼0.01 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CTCTDataStore' not found in wp-content/plugins/contact-form-newsletter/ctct_php_library/examples/contactReporting.php:9
- > PHP Fatal error
Uncaught Error: Class 'CTCTDataStore' not found in wp-content/plugins/contact-form-newsletter/ctct_php_library/config.php:15
- > PHP Notice
Undefined index: apiKey in wp-content/plugins/contact-form-newsletter/ctct_php_library/examples/example_verification.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'CTCTDataStore' not found in wp-content/plugins/contact-form-newsletter/ctct_php_library/config.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/contact-form-newsletter/contact-form-newsletter.php:37
- > PHP Fatal error
Uncaught Error: Class 'CTCTDataStore' not found in wp-content/plugins/contact-form-newsletter/ctct_php_library/examples/addContact.php:8
- > PHP Fatal error
Uncaught Error: Class 'CTCTOAuth' not found in wp-content/plugins/contact-form-newsletter/ctct_php_library/examples/example_verification.php:12
- > PHP Fatal error
Uncaught Error: Class 'CTCTDataStore' not found in wp-content/plugins/contact-form-newsletter/ctct_php_library/config.php:15
- > PHP Notice
Undefined index: return in wp-content/plugins/contact-form-newsletter/ctct_php_library/examples/example_verification.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'CTCTDataStore' not found in wp-content/plugins/contact-form-newsletter/ctct_php_library/config.php:15
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The configuration screen of the Fast Secure Contact Form when you have this newsletter plugin installed and activated.), #2 (Specify how fields are mapped to Constant Contact fields), #3 (Choose the lists form submissions are sent to)
contact-form-newsletter/contact-form-newsletter.php Passed 13 tests
The main PHP script in "Fast Secure Contact Form Newsletter" version 2.1.2 is automatically included on every request by WordPress
56 characters long description:
Integrate Constant Contact with Fast Secure Contact Form
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,516 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 603 | 1,210 | 3,516 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 4 | 8.16% |
▷ Concrete classes | 45 | 91.84% |
▷ Final classes | 0 | 0.00% |
Methods | 247 | |
▷ Static methods | 35 | 14.17% |
▷ Public methods | 230 | 93.12% |
▷ Protected methods | 3 | 1.21% |
▷ Private methods | 14 | 5.67% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
favicon.png | 0.73KB | 0.87KB | 0.00% |
screenshot-2.png | 58.59KB | 23.23KB | ▼ 60.35% |
screenshot-1.png | 74.16KB | 23.95KB | ▼ 67.71% |