84% brief-message

Code Review | Brief Message

WordPress plugin Brief Message scored 84% from 54 tests.

About plugin

  • Plugin page: brief-message
  • Plugin version: 0.0.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Jan 6, 2021
  • Latest release: Sep 24, 2021
  • Number of updates: 14
  • Update frequency: every 18.7 days
  • Top authors: back2nature (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 576 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼140.22ms] Passed 4 tests

Analyzing server-side resources used by Brief Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2434.57 ▲11.88
Dashboard /wp-admin3.19 ▲0.1448.44 ▲2.45
Posts /wp-admin/edit.php3.25 ▲0.1446.92 ▲6.46
Add New Post /wp-admin/post-new.php5.69 ▲0.2698.68 ▼562.62
Media Library /wp-admin/upload.php3.14 ▲0.1331.88 ▼7.16
Brief message /wp-admin/edit.php?post_type=brief_msg3.1832.84
Add New /wp-admin/post-new.php?post_type=brief_msg5.6886.15
Category /wp-admin/edit-tags.php?taxonomy=brief_msg_cat&post_type=brief_msg3.1435.36

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options
widget_brief_msg

Browser metrics Passed 4 tests

An overview of browser requirements for Brief Message
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,746 ▲15016.28 ▲0.8811.02 ▲1.8746.08 ▲0.55
Dashboard /wp-admin3,029 ▲986.00 ▼0.00141.33 ▼21.24115.82 ▲2.83
Posts /wp-admin/edit.php2,779 ▲402.72 ▼0.0065.30 ▼1.1386.42 ▲3.04
Add New Post /wp-admin/post-new.php1,709 ▲3718.80 ▼0.01409.62 ▼16.51107.88 ▼0.01
Media Library /wp-admin/upload.php1,850 ▲435.05 ▲0.01147.25 ▼9.44115.05 ▼10.32
Brief message /wp-admin/edit.php?post_type=brief_msg1,4582.6463.3782.08
Add New /wp-admin/post-new.php?post_type=brief_msg5,74418.83537.26115.36
Category /wp-admin/edit-tags.php?taxonomy=brief_msg_cat&post_type=brief_msg1,7792.3859.3972.84

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
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_brief_msg

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=brief_msg_cat&post_type=brief_msg
    • > Intervention (severe) in unknown
    /wp-admin/post-new.php?post_type=brief_msg - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: tweet, short, message, twitter

brief-message/brief-message.php 92% from 13 tests

The main PHP file in "Brief Message" ver. 0.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

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
There were no executable files found in this plugin841 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP622041486
JavaScript6560144
PO File15361127
CSS417084

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin