83% envychimp

Code Review | EnvyChimp - WP Subscriber Plugin

WordPress plugin EnvyChimp - WP Subscriber Plugin scored83%from 54 tests.

About plugin

  • Plugin page: envychimp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Dec 27, 2020
  • Latest release: Mar 14, 2021
  • Number of updates: 5
  • Update frequency: every 15.8 days
  • Top authors: envytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /865 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.32MB] [CPU: ▼12.37ms] Passed 4 tests

Analyzing server-side resources used by EnvyChimp - WP Subscriber Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3939.64 ▼2.37
Dashboard /wp-admin3.67 ▲0.3344.78 ▼13.13
Posts /wp-admin/edit.php3.72 ▲0.3746.69 ▼0.02
Add New Post /wp-admin/post-new.php6.19 ▲0.3082.71 ▼19.00
Media Library /wp-admin/upload.php3.53 ▲0.3040.28 ▼14.97

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

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

Browser metrics Passed 4 tests

A check of browser resources used by EnvyChimp - WP Subscriber Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.69 ▼0.584.63 ▲2.9550.19 ▲10.88
Dashboard /wp-admin2,211 ▲305.63 ▼0.0989.41 ▼9.8738.10 ▼4.47
Posts /wp-admin/edit.php2,116 ▲161.96 ▼0.0139.70 ▲2.9436.88 ▲1.65
Add New Post /wp-admin/post-new.php1,541 ▲1323.05 ▲0.02650.77 ▲9.3549.39 ▼0.60
Media Library /wp-admin/upload.php1,416 ▲134.19 ▼0.0594.33 ▼15.9044.09 ▼5.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_envy_chimp_widget_function
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 70× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: option_signup_area_new in wp-content/plugins/envychimp/public/partials/login/login-style-1.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/envychimp/public/partials/subscribe/subscribe-style-2.php:13
    • > PHP Notice
      Undefined variable: bg_image_hide_new in wp-content/plugins/envychimp/public/partials/subscribe/subscribe-style-3.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/envychimp/includes/class-envy-chimp-widget.php:3
    • > PHP Notice
      Undefined variable: option_signup_area_new in wp-content/plugins/envychimp/public/partials/signup/signup-style-1.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/envychimp/public/partials/signup/signup-style-4.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/envychimp/public/partials/subscribe/subscribe-style-4.php:3
    • > PHP Notice
      Undefined variable: envy_chimp_signup_heading_new in wp-content/plugins/envychimp/public/partials/login/login-style-3.php on line 14
    • > PHP Notice
      Undefined variable: option_signup_area_new in wp-content/plugins/envychimp/public/partials/signup/signup-style-2.php on line 5
    • > PHP Notice
      Undefined variable: envy_chimp_signup_heading_new in wp-content/plugins/envychimp/public/partials/signup/signup-style-1.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

envychimp/envy-chimp.php 85% from 13 tests

Analyzing the main PHP file in "EnvyChimp - WP Subscriber Plugin" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("envychimp.php" instead of "envy-chimp.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,692 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP366398123,186
SVG1002,671
CSS42511381,826
JavaScript2109

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods43
▷ Static methods36.98%
▷ Public methods3683.72%
▷ Protected methods24.65%
▷ Private methods511.63%
Functions70
▷ Named functions70100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 compressed PNG files occupy 0.52MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/subscribe-img-3.png9.82KB10.28KB0.00%
public/img/subscribe-img-2.png19.00KB19.92KB0.00%
public/img/envychimp-img-3-shape.png8.67KB8.70KB0.00%
public/img/envychimp-img-3.png245.41KB264.68KB0.00%
public/img/envychimp-img-2.png208.88KB225.12KB0.00%