Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.04ms] Passed 4 tests
Analyzing server-side resources used by Better Messages - WCFM Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 46.38 ▲5.71 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.04 ▼1.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.27 ▼12.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.15 ▼6.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.56 ▲0.07 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Better Messages - WCFM Integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.20 | 1.71 ▼0.09 | 44.02 ▲0.89 |
Dashboard /wp-admin | 2,192 ▲15 | 5.50 ▼0.12 | 87.44 ▼11.25 | 37.27 ▼6.14 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.00 | 34.89 ▼6.32 | 33.39 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.00 ▼0.07 | 683.38 ▲1.98 | 56.13 ▼2.14 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.01 | 96.10 ▼8.64 | 46.23 ▲1.20 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 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 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/better-messages-wcfm-integration/views/wcfm-bpbm-messaging.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-messages-wcfm-integration/better-messages-wcfm.php:158
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: messaging, private message, wcfm, chat, messages
better-messages-wcfm-integration/better-messages-wcfm.php 85% from 13 tests
The main PHP script in "Better Messages - WCFM Integration" version 1.0.7 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("better-messages-wcfm-integration.php" instead of "better-messages-wcfm.php")
Code Analysis 97% from 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 plugin33,794 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,074 | 17,241 | 33,373 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,276 | |
▷ Static methods | 200 | 15.67% |
▷ Public methods | 887 | 69.51% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 372 | 29.15% |
Functions | 106 | |
▷ Named functions | 106 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |