84% chat-billmanager

Code Review | Chat BILLmanager

WordPress plugin Chat BILLmanager scored84%from 54 tests.

About plugin

  • Plugin page: chat-billmanager
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Mar 24, 2017
  • Latest release: Mar 24, 2017
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: ivanscm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Chat BILLmanager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.02 ▲3.24
Dashboard /wp-admin3.32 ▲0.0249.31 ▼4.97
Posts /wp-admin/edit.php3.37 ▲0.0247.08 ▼0.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.29 ▼0.19
Media Library /wp-admin/upload.php3.25 ▲0.0239.19 ▲4.35
Chat BILLmanager /wp-admin/options-general.php?page=chat-billmanager-settings3.2233.18

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Chat BILLmanager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.67 ▲0.322.05 ▲0.2945.52 ▼1.17
Dashboard /wp-admin2,205 ▲285.65 ▼0.0287.54 ▼1.0943.58 ▲2.02
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0533.50 ▼5.2735.57 ▲0.26
Add New Post /wp-admin/post-new.php1,534 ▲623.07 ▼0.04624.81 ▼3.1949.53 ▼4.32
Media Library /wp-admin/upload.php1,410 ▲134.15 ▲0.01105.42 ▲5.2547.39 ▲3.49
Chat BILLmanager /wp-admin/options-general.php?page=chat-billmanager-settings1,0452.4944.9329.71

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/chat-billmanager/settings.php:218
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-billmanager/chatbillmanager.php:22

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === chat-billmanager === )
You can look at the official readme.txt

chat-billmanager/chatbillmanager.php 92% from 13 tests

"Chat BILLmanager" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chat-billmanager.php" instead of "chatbillmanager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin276 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2408231
PO File1111145

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.00
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin