Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/th23-upload/th23-upload-admin.php+1303
Undefined index: max_width
Server metrics [RAM: ▲0.20MB] [CPU: ▲0.81ms] Passed 4 tests
A check of server-side resources used by th23 Upload
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.04 ▲3.04 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.24 ▼2.71 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 47.27 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 94.56 ▲2.23 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.27 ▲3.23 |
th23 Upload /wp-admin/options-general.php?page=th23-upload | 3.47 | 33.10 |
Server storage [IO: ▲0.11MB] [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: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
th23_upload_options |
Browser metrics Passed 4 tests
A check of browser resources used by th23 Upload
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.22 ▼1.46 | 1.80 ▲0.26 | 43.86 ▲2.36 |
Dashboard /wp-admin | 2,213 ▲22 | 5.83 ▲0.97 | 95.12 ▼11.79 | 38.85 ▼5.93 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▼0.01 | 36.27 ▼0.60 | 33.46 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 23.16 ▲0.04 | 647.93 ▼18.71 | 51.77 ▼1.61 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.02 | 101.01 ▲5.96 | 43.73 ▲2.05 |
th23 Upload /wp-admin/options-general.php?page=th23-upload | 1,166 | 2.11 | 28.06 | 51.97 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- th23_upload_options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/th23-upload/th23-upload.php:153
- > PHP Fatal error
Uncaught Error: Class 'th23_upload_pro' not found in wp-content/plugins/th23-upload/th23-upload-admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: mark, stamp, image, copyright, dimensions...
th23-upload/th23-upload.php Passed 13 tests
The primary PHP file in "th23 Upload" version 1.6.0 is used by WordPress to initiate all plugin functionality
71 characters long description:
Resize images on upload to maximum allowed dimensions and add watermark
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
Everything looks great! No dangerous files found in this plugin1,674 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 170 | 258 | 1,203 |
CSS | 1 | 6 | 17 | 244 |
JavaScript | 1 | 22 | 44 | 227 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 86.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 239.00 |
Average method complexity | 7.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-square.png | 5.38KB | 3.10KB | ▼ 42.43% |
img/icon-horizontal.png | 5.93KB | 1.52KB | ▼ 74.41% |