Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼5.09ms] Passed 4 tests
Server-side resources used by ListStrap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 36.62 ▼6.81 |
Dashboard /wp-admin | 3.55 ▲0.25 | 46.65 ▼3.59 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 51.57 ▲1.04 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 88.43 ▼10.98 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 36.98 ▲4.55 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_liststrap-mailchimp |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
ListStrap: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 13.65 ▼0.77 | 5.01 ▲2.96 | 40.71 ▼5.80 |
Dashboard /wp-admin | 2,254 ▲68 | 4.92 ▼0.03 | 110.66 ▼5.10 | 69.36 ▲25.97 |
Posts /wp-admin/edit.php | 2,137 ▲45 | 2.04 ▲0.01 | 37.74 ▼5.10 | 34.25 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,567 ▲34 | 23.23 ▲0.15 | 767.05 ▲106.56 | 57.21 ▼0.49 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.19 ▼0.06 | 115.22 ▲10.41 | 46.63 ▲1.65 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_liststrap-mailchimp
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/liststrap/admin/partials/class-mailchimp-widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: mailchimp, mail listing, email capture, autoresponder, liststrap for mailchimp...
liststrap/liststrap.php Passed 13 tests
The main PHP script in "ListStrap" version 1.0.2 is automatically included on every request by WordPress
91 characters long description:
Use Liststrap to integrate Mailchimp signup forms into your WordPress site without trouble.
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
Success! There were no dangerous files found in this plugin1,712 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 143 | 668 | 1,019 |
CSS | 2 | 54 | 16 | 513 |
JavaScript | 2 | 6 | 72 | 168 |
SVG | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 20.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin