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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 34.57 ▲11.88 |
Dashboard /wp-admin | 3.19 ▲0.14 | 48.44 ▲2.45 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 46.92 ▲6.46 |
Add New Post /wp-admin/post-new.php | 5.69 ▲0.26 | 98.68 ▼562.62 |
Media Library /wp-admin/upload.php | 3.14 ▲0.13 | 31.88 ▼7.16 |
Brief message /wp-admin/edit.php?post_type=brief_msg | 3.18 | 32.84 |
Add New /wp-admin/post-new.php?post_type=brief_msg | 5.68 | 86.15 |
Category /wp-admin/edit-tags.php?taxonomy=brief_msg_cat&post_type=brief_msg | 3.14 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,746 ▲150 | 16.28 ▲0.88 | 11.02 ▲1.87 | 46.08 ▲0.55 |
Dashboard /wp-admin | 3,029 ▲98 | 6.00 ▼0.00 | 141.33 ▼21.24 | 115.82 ▲2.83 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.72 ▼0.00 | 65.30 ▼1.13 | 86.42 ▲3.04 |
Add New Post /wp-admin/post-new.php | 1,709 ▲37 | 18.80 ▼0.01 | 409.62 ▼16.51 | 107.88 ▼0.01 |
Media Library /wp-admin/upload.php | 1,850 ▲43 | 5.05 ▲0.01 | 147.25 ▼9.44 | 115.05 ▼10.32 |
Brief message /wp-admin/edit.php?post_type=brief_msg | 1,458 | 2.64 | 63.37 | 82.08 |
Add New /wp-admin/post-new.php?post_type=brief_msg | 5,744 | 18.83 | 537.26 | 115.36 |
Category /wp-admin/edit-tags.php?taxonomy=brief_msg_cat&post_type=brief_msg | 1,779 | 2.38 | 59.39 | 72.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 220 | 41 | 486 |
JavaScript | 6 | 56 | 0 | 144 |
PO File | 1 | 53 | 61 | 127 |
CSS | 4 | 17 | 0 | 84 |
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 code | 0.24 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 20.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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