Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼17.16ms] Passed 4 tests
Analyzing server-side resources used by Zip Embed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.64 ▼6.45 |
Dashboard /wp-admin | 3.23 ▼0.07 | 29.27 ▼18.13 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 34.86 ▼12.14 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 69.46 ▼27.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 28.96 ▼10.55 |
All Zips /wp-admin/edit.php?post_type=zip | 3.28 | 36.58 |
Upload Zip /wp-admin/edit.php?post_type=zip&page=zip_embed | 3.20 | 30.04 |
Zip Embed Options /wp-admin/edit.php?post_type=zip&page=zip_embed_options | 3.20 | 26.65 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Zip Embed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲206 | 14.08 ▼0.29 | 5.57 ▲3.83 | 45.69 ▼2.69 |
Dashboard /wp-admin | 2,237 ▲49 | 4.86 ▼0.04 | 112.76 ▼1.76 | 42.25 ▲0.01 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.01 ▼0.01 | 39.56 ▼1.87 | 34.10 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,568 ▲35 | 18.40 ▼4.84 | 618.48 ▼51.45 | 49.19 ▼31.26 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.19 ▼0.01 | 96.75 ▼8.98 | 44.34 ▼3.63 |
All Zips /wp-admin/edit.php?post_type=zip | 1,092 | 1.93 | 34.85 | 32.09 |
Upload Zip /wp-admin/edit.php?post_type=zip&page=zip_embed | 800 | 2.03 | 26.57 | 26.01 |
Zip Embed Options /wp-admin/edit.php?post_type=zip&page=zip_embed_options | 853 | 2.03 | 24.90 | 35.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=zip&page=zip_embed_options
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/zip-embed/zip-embed.php:45
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: media library, upload, zip
zip-embed/zip-embed.php Passed 13 tests
Analyzing the main PHP file in "Zip Embed" version 0.4
40 characters long description:
Upload a zip file and embed its contents
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected431 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 59 | 231 | 431 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
No PNG files were detected