84% yeloni-customizable-popup-for-mailchimp

Code Review | Yeloni Customizable Popup for Mailchimp

WordPress plugin Yeloni Customizable Popup for Mailchimp scored84%from 54 tests.

About plugin

  • Plugin page: yeloni-customizab...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Sep 26, 2016
  • Number of updates: 6
  • Update frequency: every 19.2 days
  • Top authors: shardulgaikwad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,228 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.98ms] Passed 4 tests

This is a short check of server-side resources used by Yeloni Customizable Popup for Mailchimp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.64 ▼1.14
Dashboard /wp-admin3.32 ▼0.0354.32 ▼13.03
Posts /wp-admin/edit.php3.37 ▲0.0153.16 ▼0.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.68 ▼32.80
Media Library /wp-admin/upload.php3.24 ▲0.0138.56 ▲1.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yeloni Customizable Popup for Mailchimp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6913.20 ▼1.381.78 ▼0.1942.38 ▲0.28
Dashboard /wp-admin2,236 ▲365.85 ▲0.94101.51 ▼6.8474.65 ▲29.76
Posts /wp-admin/edit.php2,115 ▲181.99 ▼0.0346.60 ▲6.5436.89 ▼4.20
Add New Post /wp-admin/post-new.php1,701 ▲15624.51 ▲1.18646.31 ▼2.6366.51 ▼12.41
Media Library /wp-admin/upload.php1,406 ▲64.30 ▲0.15102.03 ▼5.5883.81 ▲35.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yeloni-customizable-popup-for-mailchimp/wordpress/admin-load.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yeloni-customizable-popup-for-mailchimp/wordpress/client-load.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/yeloni-customizable-popup-for-mailchimp/wordpress/yetience_config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yeloni-customizable-popup-for-mailchimp/wordpress/yetience-class.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt is a good inspiration

yeloni-customizable-popup-for-mailchimp/yetience-plugin.php 92% from 13 tests

The main PHP script in "Yeloni Customizable Popup for Mailchimp" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("yeloni-customizable-popup-for-mailchimp.php" instead of "yetience-plugin.php")

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
There were no executable files found in this plugin9,874 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,0088304,411
CSS37526393,509
HTML331351151,156
PHP515699407
SVG100288
JSON850103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods729.17%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 PNG files occupy 0.19MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
common/images/social-icons/round/reddit.png7.09KB3.90KB▼ 44.96%
admin-interface/images/admin-icons/smiling-smiley-green.png3.18KB0.30KB▼ 90.51%
admin-interface/images/admin-icons/right-arrow-green.png3.60KB0.45KB▼ 87.46%
admin-interface/images/admin-icons/smiling-smiley.png3.18KB0.30KB▼ 90.51%
common/images/social-icons/pinterest-follow-2.png56.42KB6.30KB▼ 88.83%