Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.44ms] Passed 4 tests
Analyzing server-side resources used by EZ Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.80 ▲1.51 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.23 ▼7.30 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.49 ▲3.12 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 97.95 ▲4.43 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.06 ▲5.32 |
Add EZ Gallery /wp-admin/post-new.php?post_type=ez_gallery | 3.40 | 52.59 |
EZ Gallery /wp-admin/edit.php?post_type=ez_gallery | 3.36 | 34.56 |
Categories /wp-admin/edit-tags.php?taxonomy=gallery_cat&post_type=ez_gallery | 3.30 | 34.36 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ez_gallery_page_id |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for EZ Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 13.74 ▼0.63 | 5.22 ▲3.46 | 38.51 ▼11.01 |
Dashboard /wp-admin | 2,252 ▲64 | 4.96 ▲0.05 | 99.46 ▼16.64 | 36.98 ▼17.39 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.22 ▲0.21 | 39.72 ▲3.46 | 34.63 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,563 ▲21 | 18.38 ▼4.89 | 638.46 ▼66.70 | 33.58 ▼17.40 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.36 ▲0.22 | 106.31 ▼3.11 | 40.41 ▼7.47 |
Add EZ Gallery /wp-admin/post-new.php?post_type=ez_gallery | 1,821 | 3.67 | 72.34 | 32.15 |
EZ Gallery /wp-admin/edit.php?post_type=ez_gallery | 1,107 | 2.05 | 32.95 | 28.00 |
Categories /wp-admin/edit-tags.php?taxonomy=gallery_cat&post_type=ez_gallery | 1,305 | 2.28 | 28.32 | 27.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- ez_gallery_page_id
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ez-gallery/hook-functions.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ez-gallery/templates/archive-gallery.php:20
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were not plugin tags detected
ez-gallery/ez-gallery.php Passed 13 tests
The main file in "EZ Gallery" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
16 characters long description:
An Easy gallery.
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 detected1,553 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 23 | 59 | 947 |
PHP | 7 | 110 | 172 | 363 |
CSS | 2 | 3 | 15 | 243 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/front/ad_next.png | 0.35KB | 0.26KB | ▼ 25.35% |
assets/css/front/ad_scroll_back.png | 0.23KB | 0.17KB | ▼ 29.17% |
assets/css/front/ad_scroll_forward.png | 0.23KB | 0.16KB | ▼ 28.63% |
assets/css/front/ad_prev.png | 0.36KB | 0.26KB | ▼ 27.47% |
assets/css/front/opa75.png | 0.11KB | 0.09KB | ▼ 13.64% |