Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼5.51ms] Passed 4 tests
Analyzing server-side resources used by Flamingo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.19 | 43.55 ▲5.82 |
Dashboard /wp-admin | 3.61 ▲0.24 | 50.77 ▼9.16 |
Posts /wp-admin/edit.php | 3.73 ▲0.34 | 54.35 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.28 | 85.60 ▼19.42 |
Media Library /wp-admin/upload.php | 3.54 ▲0.27 | 38.19 ▲5.06 |
Inbound Messages /wp-admin/admin.php?page=flamingo_inbound | 3.59 | 39.55 |
Address Book /wp-admin/admin.php?page=flamingo | 3.58 | 47.94 |
Server storage [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Flamingo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.59 ▼0.79 | 1.69 ▼0.26 | 43.15 ▼0.02 |
Dashboard /wp-admin | 2,229 ▲44 | 4.87 ▼0.97 | 105.24 ▲3.68 | 36.82 ▼6.48 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.02 ▼0.03 | 40.21 ▲0.46 | 36.10 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,552 ▲22 | 23.24 ▲5.09 | 653.16 ▼20.40 | 53.74 ▲2.64 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.22 ▲0.04 | 94.95 ▼2.58 | 41.45 ▲0.14 |
Inbound Messages /wp-admin/admin.php?page=flamingo_inbound | 1,106 | 1.97 | 31.50 | 30.82 |
Address Book /wp-admin/admin.php?page=flamingo | 1,205 | 1.97 | 31.16 | 30.57 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/flamingo/admin/edit-inbound-form.php
- > /wp-content/plugins/flamingo/admin/edit-contact-form.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/flamingo/admin/includes/class-contacts-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flamingo/includes/comment.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flamingo/includes/user.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flamingo/admin/includes/privacy.php:9
- > 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/flamingo/admin/includes/class-contacts-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/flamingo/includes/csv.php:194
- > PHP Warning
Use of undefined constant FLAMINGO_PLUGIN_DIR - assumed 'FLAMINGO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/flamingo/admin/admin.php on line 3
- > 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/flamingo/admin/includes/class-inbound-messages-list-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/flamingo/admin/includes/class-inbound-messages-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flamingo/includes/cron.php:9
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: mail, bird, crm, contact
flamingo/flamingo.php Passed 13 tests
This is the main PHP file of "Flamingo" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
A trustworthy message storage plugin for Contact Form 7.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,765 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 726 | 127 | 2,690 |
CSS | 2 | 16 | 0 | 66 |
JavaScript | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 25.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 11 | 17.19% |
▷ Public methods | 41 | 64.06% |
▷ Protected methods | 22 | 34.38% |
▷ Private methods | 1 | 1.56% |
Functions | 45 | |
▷ Named functions | 44 | 97.78% |
▷ Anonymous functions | 1 | 2.22% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 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
No PNG images were found in this plugin