89% chatpiper

Code Review | Chatpiper wordpress

WordPress plugin Chatpiper wordpress scored89%from 54 tests.

About plugin

  • Plugin page: chatpiper
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Jan 18, 2016
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: whitecitycode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /538 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.73ms] Passed 4 tests

An overview of server-side resources used by Chatpiper wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.07 ▼5.44
Dashboard /wp-admin3.32 ▲0.0241.28 ▼8.01
Posts /wp-admin/edit.php3.37 ▲0.0245.70 ▲3.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.96 ▼12.68
Media Library /wp-admin/upload.php3.25 ▲0.0234.52 ▼0.80
ChatPiper /wp-admin/tools.php?page=chatpiper3.2131.00

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Chatpiper wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▼0.071.85 ▲0.0940.76 ▼4.15
Dashboard /wp-admin2,210 ▲224.85 ▼0.0197.97 ▼16.6836.30 ▼11.32
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0236.11 ▼1.8935.56 ▲3.13
Add New Post /wp-admin/post-new.php1,537 ▲2323.18 ▲5.71667.36 ▼22.0952.25 ▼3.72
Media Library /wp-admin/upload.php1,392 ▲44.17 ▲0.0398.13 ▼17.1840.83 ▼4.39
ChatPiper /wp-admin/tools.php?page=chatpiper7772.0522.8527.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === chatpiper === )
The official readme.txt is a good inspiration

chatpiper/chatpiper-wordpress.php 77% from 13 tests

The main PHP file in "Chatpiper wordpress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
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 ("chatpiper.php" instead of "chatpiper-wordpress.php")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin56 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3173556

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin