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.19MB] [CPU: ▼2.08ms] Passed 4 tests
Server-side resources used by Media from ZIP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 40.29 ▼0.97 |
Dashboard /wp-admin | 3.49 ▲0.19 | 44.62 ▼3.66 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.92 ▲6.20 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 91.63 ▼5.61 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.63 ▲1.91 |
Register by upload /wp-admin/admin.php?page=mediafromzip-upload-register | 3.38 | 32.63 |
Settings /wp-admin/admin.php?page=mediafromzip-settings | 3.39 | 32.09 |
Register on server /wp-admin/admin.php?page=mediafromzip-server-register | 3.39 | 29.25 |
Media from ZIP /wp-admin/admin.php?page=mediafromzip | 3.38 | 32.32 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Media from ZIP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.24 ▲0.02 | 1.68 ▼0.06 | 40.93 ▼3.01 |
Dashboard /wp-admin | 2,230 ▲53 | 5.62 ▲0.02 | 90.71 ▼4.01 | 42.42 ▼2.13 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 1.98 ▼0.00 | 38.98 ▼4.00 | 36.34 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,563 ▲28 | 18.12 ▲0.05 | 659.82 ▲27.95 | 80.50 ▲19.59 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.16 ▲0.07 | 105.96 ▼2.88 | 48.07 ▲6.00 |
Register by upload /wp-admin/admin.php?page=mediafromzip-upload-register | 842 | 2.00 | 24.07 | 31.08 |
Settings /wp-admin/admin.php?page=mediafromzip-settings | 1,415 | 2.30 | 36.37 | 28.37 |
Register on server /wp-admin/admin.php?page=mediafromzip-server-register | 834 | 1.92 | 25.46 | 25.68 |
Media from ZIP /wp-admin/admin.php?page=mediafromzip | 861 | 2.00 | 24.26 | 29.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/media-from-zip/lib/class-mediafromzipadmin.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-from-zip/lib/class-mediafromzip.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-from-zip/lib/class-mediafromzip.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: extract, media, archive, zip
media-from-zip/mediafromzip.php 92% from 13 tests
The main PHP script in "Media from ZIP" version 1.19 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("media-from-zip.php" instead of "mediafromzip.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,516 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 183 | 60 | 1,278 |
PHP | 4 | 130 | 251 | 918 |
CSS | 2 | 8 | 1 | 320 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 76.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 7.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 33.33% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin