79% choyal-subscription-popup

Code Review | Choyal Subscription Popup - MailChimp Support

WordPress plugin Choyal Subscription Popup - MailChimp Support scored79%from 54 tests.

About plugin

  • Plugin page: choyal-subscripti...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Jun 10, 2017
  • Number of updates: 33
  • Update frequency: every 0.2 days
  • Top authors: gchoyal1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /837 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.62ms] Passed 4 tests

Server-side resources used by Choyal Subscription Popup - MailChimp Support
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1339.94 ▼1.68
Dashboard /wp-admin3.42 ▲0.1149.82 ▲0.72
Posts /wp-admin/edit.php3.47 ▲0.1147.58 ▼0.42
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.22 ▼19.18
Media Library /wp-admin/upload.php3.34 ▲0.1136.43 ▼1.19
CSP Settings /wp-admin/admin.php?page=csp-setting3.3234.63
Popup Design /wp-admin/admin.php?page=csp-designs3.3234.31
Subscribers List /wp-admin/admin.php?page=csp-subscribers3.3533.04

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables
wp_csp_subscribers
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Choyal Subscription Popup - MailChimp Support
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲23314.07 ▼0.2311.59 ▲9.9355.28 ▲15.94
Dashboard /wp-admin2,217 ▲294.93 ▼1.14103.56 ▲1.8780.71 ▲42.22
Posts /wp-admin/edit.php2,118 ▲292.02 ▲0.0233.79 ▼2.3334.86 ▲1.15
Add New Post /wp-admin/post-new.php1,539 ▲1120.97 ▼2.16700.60 ▲6.2159.63 ▲10.06
Media Library /wp-admin/upload.php1,411 ▲264.13 ▼0.1698.43 ▼0.8967.81 ▲25.18
CSP Settings /wp-admin/admin.php?page=csp-setting1,0462.0824.0331.08
Popup Design /wp-admin/admin.php?page=csp-designs9671.7324.4230.79
Subscribers List /wp-admin/admin.php?page=csp-subscribers1,1651.6924.3728.72

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

choyal-subscription-popup/plugin.php 85% from 13 tests

"Choyal Subscription Popup - MailChimp Support" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 329 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("choyal-subscription-popup.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,809 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4784551,255
CSS1691388
SVG201129
JavaScript221337

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.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
4 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/button-pro.png4.83KB2.61KB▼ 45.97%
assets/img/mail-admin-icon.png15.21KB0.72KB▼ 95.28%
assets/img/comingsoon.png82.23KB21.58KB▼ 73.76%
assets/img/mail.png4.60KB2.64KB▼ 42.59%