90% hivepress-messages

Code Review | HivePress Messages

WordPress plugin HivePress Messages scored90%from 54 tests.

About plugin

  • Plugin page: hivepress-messages
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2018
  • Latest release: Apr 11, 2023
  • Number of updates: 21
  • Update frequency: every 78.1 days
  • Top authors: hivepress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

7,000+ active /47,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by HivePress Messages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.74 ▼0.98
Dashboard /wp-admin3.31 ▼0.0350.81 ▼10.68
Posts /wp-admin/edit.php3.36 ▲0.0143.42 ▼6.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.56 ▼14.06
Media Library /wp-admin/upload.php3.23 ▲0.0031.94 ▼1.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for HivePress Messages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.124.79 ▲2.7543.91 ▼0.78
Dashboard /wp-admin2,200 ▲125.79 ▼0.12111.91 ▲10.0038.91 ▼4.01
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0435.46 ▼3.3732.09 ▼6.68
Add New Post /wp-admin/post-new.php1,533 ▲123.20 ▲4.93673.55 ▲23.6169.62 ▲8.24
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0394.39 ▼6.2641.77 ▼2.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: classifieds, hivepress, listings, messages, directory

hivepress-messages/hivepress-messages.php Passed 13 tests

The entry point to "HivePress Messages" version 1.3.0 is a PHP file that has certain tags in its header comment area
37 characters long description:
Allow users to send private messages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,093 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP404768711,981
LESS1193106
JSON1005
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity13.60
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes213.33%
Methods81
▷ Static methods2227.16%
▷ Public methods7896.30%
▷ Protected methods11.23%
▷ Private methods22.47%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin