83% cb-popup-subscriber

Code Review | CB MailChimp Popup Subscriber

WordPress plugin CB MailChimp Popup Subscriber scored83%from 54 tests.

About plugin

  • Plugin page: cb-popup-subscriber
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /435 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
Install script ran successfully

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

This is a short check of server-side resources used by CB MailChimp Popup Subscriber
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0947.71 ▲10.17
Dashboard /wp-admin3.40 ▲0.0545.71 ▼13.28
Posts /wp-admin/edit.php3.51 ▲0.1648.27 ▼3.00
Add New Post /wp-admin/post-new.php6.00 ▲0.1181.21 ▼24.14
Media Library /wp-admin/upload.php3.32 ▲0.0938.30 ▲2.45

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CB MailChimp Popup Subscriber
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲26213.43 ▼0.909.37 ▲7.7836.90 ▼0.87
Dashboard /wp-admin2,203 ▲295.59 ▼0.0390.48 ▼9.9938.11 ▼4.10
Posts /wp-admin/edit.php2,108 ▲81.99 ▼0.0439.14 ▲2.8435.56 ▲6.49
Add New Post /wp-admin/post-new.php1,535 ▲723.22 ▲0.09683.75 ▲14.2357.91 ▼1.28
Media Library /wp-admin/upload.php1,411 ▲84.22 ▲0.0498.83 ▲1.4344.28 ▼0.21
CB Popup Subscriber /wp-admin/cb_popup_sub.php260.420.0914.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/cb_popup_sub.php
    • > Network (severe)
    wp-admin/cb_popup_sub.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Add a description for screenshot #3 in cb-popup-subscriber/assets to your readme.txt
  • Screenshots: Please add an image for screenshot #2 (Looking two)
The official readme.txt might help

cb-popup-subscriber/config.php 92% from 13 tests

This is the main PHP file of "CB MailChimp Popup Subscriber" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cb-popup-subscriber.php" instead of "config.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin576 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS3313271
PHP514667259
JavaScript321845
Markdown1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 are no PNG files in this plugin