Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.80ms] Passed 4 tests
Server-side resources used by S3 Secure URL
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.47 ▼5.37 |
Dashboard /wp-admin | 3.40 ▲0.09 | 43.37 ▼2.74 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 45.54 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 81.33 ▼11.51 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 31.88 ▼3.59 |
S3 Secure URL /wp-admin/options-general.php?page=s3-secure-url | 3.29 | 31.98 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
s3_secure_url_plugin_version |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for S3 Secure URL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲97 | 13.36 ▼0.93 | 7.60 ▲5.49 | 39.08 ▼6.43 |
Dashboard /wp-admin | 2,203 ▲26 | 5.54 ▼0.03 | 86.87 ▼5.73 | 38.98 ▼5.54 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.96 ▼0.06 | 37.14 ▲2.41 | 36.59 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,538 ▲2 | 23.15 ▲4.86 | 668.65 ▲45.76 | 51.38 ▼10.16 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.17 ▼0.02 | 94.27 ▼0.53 | 43.19 ▲2.37 |
S3 Secure URL /wp-admin/options-general.php?page=s3-secure-url | 952 | 2.01 | 22.36 | 32.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- s3_secure_url_plugin_version
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/s3-secure-url/admin/assets/js/tinymce-plugin/tinymce-plugin-popup.php
- > /wp-content/plugins/s3-secure-url/admin/views/admin.php
- > /wp-content/plugins/s3-secure-url/admin/views/_sidebar-right.php
- > /wp-content/plugins/s3-secure-url/public/views/public.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/s3-secure-url/public/class-s3-secure-url.php:460
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Plugin settings page), #2 (Shortcode builder popup form)
s3-secure-url/s3-secure-url.php 92% from 13 tests
The main PHP script in "S3 Secure URL" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,986 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 474 | 1,281 | 1,935 |
JavaScript | 3 | 18 | 28 | 38 |
CSS | 2 | 1 | 7 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 268.00 |
Average method complexity | 5.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 92 | |
▷ Static methods | 58 | 63.04% |
▷ Public methods | 74 | 80.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 19.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.26MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 131.78KB | 56.46KB | ▼ 57.15% |
admin/assets/js/tinymce-plugin/tinymce-plugin-btn.png | 1.05KB | 0.20KB | ▼ 81.17% |
assets/banner-772x250.png | 8.25KB | 3.32KB | ▼ 59.81% |
assets/banner-1544x500.png | 18.60KB | 7.86KB | ▼ 57.75% |
assets/screenshot-1.png | 50.43KB | 23.09KB | ▼ 54.22% |