Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.54ms] Passed 4 tests
A check of server-side resources used by Social Subscribe Box
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 47.71 ▼0.70 |
Dashboard /wp-admin | 3.49 ▲0.19 | 49.25 ▼11.33 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 50.19 ▼5.71 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 99.37 ▼4.42 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 42.41 ▲0.44 |
Social Subscribe Box /wp-admin/options-general.php?page=pt-social-subscribe-box-settings | 3.53 | 37.23 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
ptssbox_settings |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Social Subscribe Box
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,092 ▲331 | 13.87 ▼0.73 | 14.47 ▲12.74 | 47.60 ▲4.76 |
Dashboard /wp-admin | 2,199 ▲19 | 5.58 ▼0.08 | 89.99 ▼11.71 | 42.94 ▼2.52 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.94 ▼0.04 | 41.46 ▲5.42 | 37.50 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.71 ▲0.83 | 649.52 ▼34.40 | 53.85 ▼7.06 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.11 | 95.99 ▼15.00 | 43.14 ▼3.28 |
Social Subscribe Box /wp-admin/options-general.php?page=pt-social-subscribe-box-settings | 1,101 | 1.88 | 33.93 | 34.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- ptssbox_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/social-subscribe-box/assets/social-subscribe-box-form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #4, #5 in social-subscribe-box/assets to your readme.txt
social-subscribe-box/social-subscribe-box.php Passed 13 tests
The main PHP script in "Social Subscribe Box" version 1.0.0 is automatically included on every request by WordPress
92 characters long description:
Easy MailChimp subscription with social follow buttons for Facebook, Twitter, LinkedIn and .
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,142 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 683 | 1,302 | 1,893 |
JavaScript | 6 | 173 | 180 | 632 |
Markdown | 3 | 101 | 0 | 226 |
PO File | 1 | 86 | 92 | 209 |
CSS | 2 | 19 | 13 | 182 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 6 | 3.87% |
▷ Public methods | 138 | 89.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 10.97% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/fun/pt-fun-12.png | 0.86KB | 0.83KB | ▼ 2.84% |
assets/icons/error/pt-err-4.png | 0.83KB | 0.83KB | 0.00% |
assets/icons/error/pt-err-5.png | 0.98KB | 0.98KB | 0.00% |
assets/icons/fun/pt-fun-6.png | 1.24KB | 1.25KB | 0.00% |
assets/icons/fun/pt-fun-4.png | 0.95KB | 0.94KB | ▼ 0.93% |