Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.26ms] Passed 4 tests
Analyzing server-side resources used by Upunzipper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.53 ▼4.34 |
Dashboard /wp-admin | 3.48 ▲0.17 | 56.18 ▼0.20 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 60.51 ▲3.76 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.08 ▼14.62 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.13 ▲2.11 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Upunzipper
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,032 ▲271 | 14.74 ▲0.12 | 4.87 ▲3.08 | 41.12 ▼1.16 |
Dashboard /wp-admin | 2,355 ▲175 | 6.15 ▲0.57 | 119.81 ▲18.42 | 43.75 ▲0.09 |
Posts /wp-admin/edit.php | 2,283 ▲180 | 3.41 ▲1.46 | 55.38 ▲12.46 | 38.13 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.73 ▲0.64 | 670.19 ▼16.05 | 36.80 ▼21.61 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.18 ▼0.01 | 82.39 ▼20.90 | 42.43 ▼3.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/upunzipper/public/partials/upunzipper-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/upunzipper/admin/partials/upunzipper-admin-display.php:18
- > PHP Fatal error
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 errors were detected
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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== upunzipper ===
)
upunzipper/upunzipper.php Passed 13 tests
The principal PHP file in "Upunzipper" v. 1.0.0 is loaded by WordPress automatically on each request
81 characters long description:
This plugin allow you extract and add files in the media library from a zip file.
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
Everything looks great! No dangerous files found in this plugin658 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 184 | 551 | 386 |
JavaScript | 2 | 64 | 30 | 198 |
PO File | 1 | 19 | 23 | 50 |
CSS | 2 | 3 | 8 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 7 | 17.95% |
▷ Public methods | 29 | 74.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 25.64% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin