Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.31ms] Passed 4 tests
Analyzing server-side resources used by hiWeb Upload Dir Limit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.78 ▼2.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.66 ▼7.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.41 ▼0.99 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.29 ▼2.21 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 36.00 ▲1.18 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by hiWeb Upload Dir Limit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.63 ▼0.75 | 4.88 ▲3.09 | 41.36 ▼1.58 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.03 | 111.41 ▼1.17 | 41.76 ▼1.80 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.03 | 39.83 ▼1.70 | 35.07 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,520 ▼9 | 23.37 ▲5.05 | 685.19 ▲54.78 | 62.20 ▲11.04 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▲0.06 | 97.27 ▼4.12 | 40.69 ▼5.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-upload-dir-limit/inc/options-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-upload-dir-limit/inc/options-page.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Invalid URI found ("")
- Screenshots: These screenshots require images: #1 (Set a limit on the upload files to the main General Settings page), #2 (If a limit is exceeded, after uploading the file (or files), there is an error.)
hiweb-upload-dir-limit/hiweb-upload-dir-limit.php Passed 13 tests
The primary PHP file in "hiWeb Upload Dir Limit" version 1.0.0.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
This little plugin allows you to specify a size limit upload folder.
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
There were no executable files found in this plugin60 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 22 | 8 | 60 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.48MB with 0.31MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 29.14KB | 14.89KB | ▼ 48.89% |
screenshot-2.png | 467.01KB | 103.59KB | ▼ 77.82% |