Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.20ms] Passed 4 tests
Server-side resources used by RightMessage
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 39.52 ▼2.08 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.46 ▼2.36 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.54 ▼8.50 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 104.70 ▲2.55 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.69 ▲0.15 |
RightMessage /wp-admin/options-general.php?page=_wp_rightmessage_settings | 3.25 | 30.62 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
_wp_rightmessage_settings |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for RightMessage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 14.74 ▲0.44 | 2.00 ▲0.23 | 38.78 ▼6.33 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.97 | 110.16 ▲4.56 | 44.17 ▼1.36 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.04 ▲0.04 | 40.54 ▲2.64 | 36.01 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,516 ▼3 | 17.61 ▼5.65 | 612.54 ▼63.84 | 54.49 ▲6.31 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.16 ▼0.07 | 96.45 ▼21.53 | 40.47 ▼5.29 |
RightMessage /wp-admin/options-general.php?page=_wp_rightmessage_settings | 838 | 2.05 | 26.09 | 31.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- _wp_rightmessage_settings
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/rightmessage/views/rm-variables.php
- > /wp-content/plugins/rightmessage/views/tracking-code.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: account_id in wp-content/plugins/rightmessage/views/tracking-code.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rightmessage/wp-rightmessage.php:17
- > PHP Fatal error
Uncaught Error: Class 'RightMessage_Settings_Base' not found in wp-content/plugins/rightmessage/admin/section/class-rightmessage-settings-general.php:10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
rightmessage/wp-rightmessage.php 92% from 13 tests
"RightMessage" version 0.9.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("rightmessage.php" instead of "wp-rightmessage.php")
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
No dangerous file extensions were detected323 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 87 | 42 | 323 |
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 code | 0.30 |
Average class complexity | 8.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 14 | 43.75% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin