84% messengerchimp-bar

Code Review | MessengerChimp Bar

WordPress plugin MessengerChimp Bar scored84%from 54 tests.

About plugin

  • Plugin page: messengerchimp-bar
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2016
  • Latest release: Oct 25, 2016
  • Number of updates: 10
  • Update frequency: every 1.2 days
  • Top authors: devenbhooshan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.17ms] Passed 4 tests

An overview of server-side resources used by MessengerChimp Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.67 ▼0.00
Dashboard /wp-admin3.33 ▼0.0248.65 ▼12.80
Posts /wp-admin/edit.php3.38 ▲0.0247.35 ▼4.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.65 ▲0.66
Media Library /wp-admin/upload.php3.25 ▲0.0238.25 ▲3.71
MessengerChimp /wp-admin/options-general.php?page=mc_messenger_chimp_options3.2230.28

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for MessengerChimp Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲9714.63 ▲0.3941.78 ▲39.9044.81 ▲4.25
Dashboard /wp-admin2,213 ▲284.84 ▼1.05102.38 ▲3.7238.64 ▼6.31
Posts /wp-admin/edit.php2,093 ▲11.96 ▼0.0939.06 ▲2.6935.63 ▲2.11
Add New Post /wp-admin/post-new.php1,532 ▲418.16 ▼4.86613.72 ▼48.3755.78 ▼1.40
Media Library /wp-admin/upload.php1,386 ▼24.20 ▼0.0499.83 ▲3.1843.05 ▼4.62
MessengerChimp /wp-admin/options-general.php?page=mc_messenger_chimp_options8582.0726.5628.05

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/messengerchimp-bar/messengerChimp-bar.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

messengerchimp-bar/messengerChimp-bar.php 92% from 13 tests

The main PHP script in "MessengerChimp Bar" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("messengerchimp-bar.php" instead of "messengerChimp-bar.php")

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
Success! There were no dangerous files found in this plugin238 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1388155
CSS10183

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin