90% trs-mailchimp-for-gigpress

Code Review | MailChimp for GigPress

WordPress plugin MailChimp for GigPress scored90%from 54 tests.

About plugin

  • Plugin page: trs-mailchimp-for...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.7.3
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: Mar 21, 2022
  • Number of updates: 10
  • Update frequency: every 176.3 days
  • Top authors: therightsw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /723 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.24ms] Passed 4 tests

A check of server-side resources used by MailChimp for GigPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0949.16 ▲6.99
Dashboard /wp-admin3.39 ▲0.0947.95 ▼3.00
Posts /wp-admin/edit.php3.51 ▲0.1547.10 ▼0.42
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.17 ▼4.44
Media Library /wp-admin/upload.php3.32 ▲0.0935.66 ▼1.11

Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MailChimp for GigPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.18 ▼1.225.30 ▲3.2041.67 ▼1.77
Dashboard /wp-admin2,206 ▲215.80 ▼0.1699.07 ▼19.6740.22 ▼5.84
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0033.65 ▼2.8935.82 ▲1.51
Add New Post /wp-admin/post-new.php1,542 ▲918.35 ▼4.94608.75 ▼75.0548.88 ▼2.85
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.0595.15 ▼10.9642.67 ▼3.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

trs-mailchimp-for-gigpress/trs-mailchimp-for-gigpress.php Passed 13 tests

The principal PHP file in "MailChimp for GigPress" v. 1.0.1 is loaded by WordPress automatically on each request
62 characters long description:
It is used to automate mailchimp campaigns for specified list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,336 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP213032,0011,212
CSS2162124

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 code0.16
Average class complexity2.37
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes51
▷ Abstract classes00.00%
▷ Concrete classes51100.00%
▷ Final classes00.00%
Methods148
▷ Static methods42.70%
▷ Public methods14094.59%
▷ Protected methods00.00%
▷ Private methods85.41%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/setting.png3.56KB0.20KB▼ 94.37%
img/delete.png0.51KB0.63KB0.00%