84% liststrap

Code Review | ListStrap

WordPress plugin ListStrap scored 84% from 54 tests.

About plugin

  • Plugin page: liststrap
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Jul 23, 2021
  • Latest release: Jul 23, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: qubethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 318 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2536.62 ▼6.81
Dashboard /wp-admin3.55 ▲0.2546.65 ▼3.59
Posts /wp-admin/edit.php3.66 ▲0.3151.57 ▲1.04
Add New Post /wp-admin/post-new.php6.15 ▲0.2688.43 ▼10.98
Media Library /wp-admin/upload.php3.47 ▲0.2536.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲22113.65 ▼0.775.01 ▲2.9640.71 ▼5.80
Dashboard /wp-admin2,254 ▲684.92 ▼0.03110.66 ▼5.1069.36 ▲25.97
Posts /wp-admin/edit.php2,137 ▲452.04 ▲0.0137.74 ▼5.1034.25 ▼2.59
Add New Post /wp-admin/post-new.php1,567 ▲3423.23 ▲0.15767.05 ▲106.5657.21 ▼0.49
Media Library /wp-admin/upload.php1,430 ▲454.19 ▼0.06115.22 ▲10.4146.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP111436681,019
CSS25416513
JavaScript2672168
SVG10112

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.88
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods54
▷ Static methods23.70%
▷ Public methods4990.74%
▷ Protected methods00.00%
▷ Private methods59.26%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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