Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.24ms] Passed 4 tests
Analyzing server-side resources used by Custom Welcome Messages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.65 ▼0.85 |
Dashboard /wp-admin | 3.39 ▲0.08 | 44.75 ▼1.34 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.27 ▲4.36 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 95.43 ▼5.05 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.31 ▼1.70 |
Custom Welcome Messages /wp-admin/options-general.php?page=custom-welcome | 3.28 | 34.98 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Welcome Messages
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▼0.12 | 1.62 ▼0.05 | 41.50 ▲0.58 |
Dashboard /wp-admin | 2,201 ▲21 | 5.58 ▼0.07 | 81.98 ▼2.06 | 35.39 ▼8.12 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.02 ▲0.03 | 38.82 ▲3.06 | 35.94 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.31 ▼5.12 | 597.12 ▼51.42 | 65.92 ▲0.30 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.03 | 96.96 ▼2.99 | 41.82 ▼1.85 |
Custom Welcome Messages /wp-admin/options-general.php?page=custom-welcome | 1,076 | 2.01 | 27.00 | 38.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-welcome-messages/main.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Shows a custom login/register screen.), #2 (Shows a custom logout screen.), #3 (Shows admin settings page for custom login/register screen.), #4 (Shows admin settings page for custom logout screen.), #5 (Shows admin page for extra settings.)
custom-welcome-messages/main.php 92% from 13 tests
The main PHP file in "Custom Welcome Messages" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-welcome-messages.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected335 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 64 | 65 | 256 |
CSS | 1 | 13 | 2 | 79 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rss.png | 4.17KB | 1.39KB | ▼ 66.77% |
screenshot-5.png | 13.71KB | 7.38KB | ▼ 46.21% |
screenshot-4.png | 18.81KB | 10.32KB | ▼ 45.11% |
img/support.png | 4.63KB | 1.55KB | ▼ 66.43% |
screenshot-1.png | 113.68KB | 45.44KB | ▼ 60.03% |