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
Install script ran successfully
Server metrics [RAM: ▲1.58MB] [CPU: ▲10.61ms] Passed 4 tests
Server-side resources used by Zu Media
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.06 ▲1.60 | 51.11 ▲6.05 |
Dashboard /wp-admin | 4.88 ▲1.57 | 58.85 ▲9.22 |
Posts /wp-admin/edit.php | 4.93 ▲1.57 | 61.76 ▲8.07 |
Add New Post /wp-admin/post-new.php | 7.51 ▲1.62 | 115.56 ▲21.42 |
Media Library /wp-admin/upload.php | 4.81 ▲1.58 | 55.36 ▲19.11 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 4.92 | 65.47 |
/wp-admin/options-general.php?page=sep-46-0-46 | 4.57 | 36.73 |
Location /wp-admin/edit-tags.php?taxonomy=location&post_type=attachment | 4.92 | 63.06 |
Zu Media /wp-admin/options-general.php?page=zumedia-settings | 4.82 | 59.26 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
zumedia_options |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Zu Media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.18 ▼1.49 | 1.74 ▼0.10 | 42.69 ▼2.83 |
Dashboard /wp-admin | 2,226 ▲35 | 4.86 ▼1.02 | 110.34 ▼27.12 | 44.23 ▼10.42 |
Posts /wp-admin/edit.php | 2,203 ▲111 | 2.01 ▼0.01 | 41.18 ▼2.55 | 38.02 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 23.48 ▲0.52 | 686.49 ▼4.99 | 38.43 ▼16.29 |
Media Library /wp-admin/upload.php | 1,557 ▲169 | 5.63 ▲1.38 | 135.41 ▲32.25 | 44.58 ▼1.09 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=attachment | 1,423 | 2.14 | 26.08 | 29.48 |
/wp-admin/options-general.php?page=sep-46-0-46 | 28 | 0.44 | 0.08 | 4.00 |
Location /wp-admin/edit-tags.php?taxonomy=location&post_type=attachment | 1,381 | 2.13 | 29.62 | 30.86 |
Zu Media /wp-admin/options-general.php?page=zumedia-settings | 2,120 | 14.66 | 305.57 | 40.48 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 25% 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)
Good news, no errors were detected
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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zu-media/zu-media.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'zukit_Addon' not found in wp-content/plugins/zu-media/includes/addons/image-sizes.php:2
- > PHP Warning
Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/zu-media/zukit/load.php on line 105
- > PHP Fatal error
Uncaught Error: Class 'zukit_Addon' not found in wp-content/plugins/zu-media/includes/addons/admin-colors.php:3
- > PHP Fatal error
Uncaught Error: Class 'zukit_Addon' not found in wp-content/plugins/zu-media/includes/media-folders/zumedia-folders.php:10
- > PHP Fatal error
Uncaught Error: Class 'zukit_Addon' not found in wp-content/plugins/zu-media/includes/addons/dominant-color.php:7
- > PHP Fatal error
Uncaught Error: Class 'zukit_SingletonLogging' not found in wp-content/plugins/zu-media/zukit/snippets/hub.php:17
- > PHP Fatal error
Uncaught Error: Class 'zukit_Plugin' not found in wp-content/plugins/zu-media/includes/zumedia-plugin.php:10
- > PHP Fatal error
Uncaught Error: Class 'zukit_Addon' not found in wp-content/plugins/zu-media/zukit/zukit-blocks.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=sep-46-0-46
- > Network (severe)
wp-admin/options-general.php?page=sep-46-0-46 - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% 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
6 plugin tags: media library, gutenberg, folders, admin, dominant color...
zu-media/zu-media.php 85% from 13 tests
The primary PHP file in "Zu Media" version 2.3.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/lang/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,393 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,282 | 882 | 6,207 |
PO File | 2 | 54 | 54 | 150 |
SVG | 1 | 0 | 0 | 13 |
JavaScript | 6 | 0 | 0 | 11 |
CSS | 10 | 0 | 0 | 10 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 34 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 550 | |
▷ Static methods | 18 | 3.27% |
▷ Public methods | 322 | 58.55% |
▷ Protected methods | 103 | 18.73% |
▷ Private methods | 125 | 22.73% |
Functions | 49 | |
▷ Named functions | 18 | 36.73% |
▷ Anonymous functions | 31 | 63.27% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin