Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.90ms] Passed 4 tests
A check of server-side resources used by ZIP from Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 43.57 ▲1.21 |
Dashboard /wp-admin | 3.43 ▲0.08 | 46.89 ▼12.14 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.93 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.64 ▼1.24 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.26 ▼2.88 |
ZIP from Media /wp-admin/admin.php?page=zipfrommedia | 3.32 | 32.77 |
Generate ZIP /wp-admin/admin.php?page=zipfrommedia-generate-zip | 3.32 | 34.43 |
Settings /wp-admin/admin.php?page=zipfrommedia-settings | 3.32 | 30.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ZIP from Media
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.25 ▼0.28 | 1.69 ▼0.09 | 44.74 ▲2.74 |
Dashboard /wp-admin | 2,229 ▲51 | 5.64 ▲0.07 | 87.31 ▼15.43 | 37.80 ▼5.39 |
Posts /wp-admin/edit.php | 2,134 ▲37 | 2.03 ▼0.00 | 38.47 ▲0.68 | 35.09 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 18.25 ▼4.84 | 619.31 ▼68.44 | 73.86 ▲18.18 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.15 ▼0.00 | 95.13 ▼13.65 | 54.23 ▲4.56 |
ZIP from Media /wp-admin/admin.php?page=zipfrommedia | 854 | 2.00 | 24.16 | 29.09 |
Generate ZIP /wp-admin/admin.php?page=zipfrommedia-generate-zip | 822 | 2.03 | 23.20 | 28.32 |
Settings /wp-admin/admin.php?page=zipfrommedia-settings | 864 | 2.00 | 24.08 | 27.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zip-from-media/lib/class-zipfrommedia.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/zip-from-media/lib/class-zipfrommediaadmin.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zip-from-media/lib/class-zipfrommedia.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: compress, zip, media, archive
zip-from-media/zipfrommedia.php 92% from 13 tests
"ZIP from Media" version 1.06's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zip-from-media.php" instead of "zipfrommedia.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected553 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 84 | 185 | 553 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 5.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin