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: ▼2.66ms] Passed 4 tests
An overview of server-side resources used by Devexhub Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 35.92 ▼0.00 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.50 ▼2.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.47 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 90.72 ▼6.93 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.31 ▼0.01 |
Gallery Categories /wp-admin/edit-tags.php?taxonomy=dh_category&post_type=dh_gallery | 3.32 | 32.55 |
Add New /wp-admin/post-new.php?post_type=dh_gallery | 3.40 | 51.39 |
All Galleries /wp-admin/edit.php?post_type=dh_gallery | 3.37 | 32.60 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
dh-gallery-plugin |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Devexhub Gallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 13.56 ▼0.82 | 8.06 ▲6.21 | 40.91 ▼1.89 |
Dashboard /wp-admin | 2,241 ▲50 | 4.89 ▼1.01 | 108.77 ▲5.09 | 42.78 ▼3.56 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▲0.01 | 40.97 ▼2.87 | 35.96 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,544 ▲10 | 23.28 ▲0.08 | 611.09 ▼50.81 | 59.27 ▲6.14 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.21 ▼0.03 | 98.40 ▼3.12 | 43.10 ▲0.62 |
Gallery Categories /wp-admin/edit-tags.php?taxonomy=dh_category&post_type=dh_gallery | 1,297 | 2.14 | 28.43 | 27.67 |
Add New /wp-admin/post-new.php?post_type=dh_gallery | 1,726 | 3.63 | 68.41 | 44.93 |
All Galleries /wp-admin/edit.php?post_type=dh_gallery | 1,094 | 2.00 | 28.69 | 25.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- dh-gallery-plugin
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/devexhub-gallery/public/partials/devexhub-gallery-public-display.php
- > /wp-content/plugins/devexhub-gallery/admin/partials/devexhub-gallery-admin-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/devexhub-gallery/includes/gallery_page_template.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devexhub-gallery/includes/class-devexhub-gallery-functions.php:13
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (assets/first.png), #2 (assets/second.png)
- Tags: There are too many tags (16 tag instead of maximum 10)
devexhub-gallery/devexhub-gallery.php Passed 13 tests
The primary PHP file in "Devexhub Gallery" version 1.5 is used by WordPress to initiate all plugin functionality
75 characters long description:
This plugin allows you to create a responsive gallery page in the frontend.
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
Good job! No executable or dangerous file extensions detected495 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 139 | 585 | 443 |
CSS | 3 | 0 | 24 | 46 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/first.png | 9.71KB | 5.80KB | ▼ 40.26% |
assets/second.png | 18.14KB | 8.33KB | ▼ 54.06% |