Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.35ms] Passed 4 tests
Analyzing server-side resources used by single-use message
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.39 ▼0.32 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.62 ▼12.83 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 53.68 ▲1.19 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.48 ▼13.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.95 ▲3.25 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables |
---|
ntd_securemessage |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
single-use message: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 13.59 ▼0.79 | 8.21 ▲6.35 | 45.12 ▲1.61 |
Dashboard /wp-admin | 2,225 ▲37 | 5.85 ▲0.96 | 101.94 ▼15.10 | 41.61 ▼1.89 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.00 ▼0.01 | 40.91 ▲2.13 | 36.82 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,555 ▲36 | 18.29 ▼4.82 | 636.51 ▼42.74 | 59.55 ▲3.47 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.19 ▼0.03 | 95.99 ▼7.54 | 47.23 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/secure-message/ntd-securemessage.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/secure-message/includes/shortcodes.php:124
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/secure-message/includes/settings.php:106
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (/screenshots/screenshot1.png), #2 (/screenshots/screenshot2.png), #3 (/screenshots/screenshot3.png), #4 (/screenshots/screenshot4.png), #5 (/screenshots/screenshot5.png), #6 (/screenshots/screenshot6.png), #7 (/screenshots/screenshot7.png)
secure-message/ntd-securemessage.php 92% from 13 tests
This is the main PHP file of "single-use message" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("secure-message.php" instead of "ntd-securemessage.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 detected364 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 73 | 38 | 364 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.62MB with 1.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot6.png | 482.66KB | 125.24KB | ▼ 74.05% |
screenshots/screenshot5.png | 480.59KB | 127.47KB | ▼ 73.48% |
screenshots/screenshot7.png | 47.36KB | 22.27KB | ▼ 52.98% |
screenshots/screenshot3.png | 81.40KB | 36.56KB | ▼ 55.09% |
screenshots/screenshot2.png | 43.58KB | 19.74KB | ▼ 54.71% |