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.01MB] [CPU: ▼3.20ms] Passed 4 tests
Server-side resources used by Single Post Message
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.68 ▼0.61 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.74 ▼3.96 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.00 ▼2.87 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.07 ▼2.66 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.90 ▼3.31 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Single Post Message
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.40 ▼0.97 | 1.65 ▼0.08 | 42.77 ▲2.13 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▼0.03 | 103.22 ▼5.56 | 40.59 ▼1.11 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.02 | 35.48 ▼4.95 | 35.87 ▼0.82 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,717 | 26.00 ▲2.74 | 876.09 ▲198.33 | 62.60 ▲13.61 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.21 ▼0.01 | 101.89 ▼3.20 | 43.88 ▼0.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (The Single Post Message editor and preview located below the content editor on the 'Add New Post' and 'Edit Post' screen), #2 (The Single Post Message rendered between the title and the post content)
single-post-message/single-post-message.php Passed 13 tests
This is the main PHP file of "Single Post Message" version 2.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Easily add short messages and announcements above posts. Displays in the RSS feed and on the blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected225 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 53 | 107 | 99 |
PO File | 3 | 18 | 18 | 86 |
LESS | 1 | 3 | 0 | 23 |
JavaScript | 2 | 9 | 5 | 15 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 77.57KB | 23.52KB | ▼ 69.69% |
screenshot-1.png | 28.04KB | 8.45KB | ▼ 69.87% |