Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.43MB] [CPU: ▼271.75ms] Passed 4 tests
An overview of server-side resources used by Wordpress Gallery Plugin - Edge Photo Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.34 ▲4.82 | 84.73 ▲34.00 |
Dashboard /wp-admin | 8.36 ▲4.95 | 64.80 ▲31.38 |
Posts /wp-admin/edit.php | 8.36 ▲4.72 | 67.04 ▲29.62 |
Add New Post /wp-admin/post-new.php | 10.23 ▲3.26 | 119.83 ▼1,182.01 |
Media Library /wp-admin/upload.php | 8.36 ▲5.06 | 61.58 ▲37.61 |
Add New /wp-admin/post-new.php?post_type=edgegallery | 8.36 | 69.24 |
Gallery Settings /wp-admin/edit.php?post_type=edgegallery&page=gallery_settings | 8.36 | 52.25 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 8.36 | 51.62 |
All Galleries /wp-admin/edit.php?post_type=edgegallery | 8.36 | 52.74 |
Server storage [IO: ▲4.49MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 205 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_gdpr |
fs_accounts |
fs_debug_mode |
Browser metrics Passed 4 tests
Wordpress Gallery Plugin - Edge Photo Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,007 ▲265 | 16.41 ▲0.43 | 9.74 ▲3.15 | 2.11 ▼0.60 |
Dashboard /wp-admin | 2,980 ▲122 | 6.33 ▲0.18 | 120.63 ▼20.55 | 171.53 ▲15.57 |
Posts /wp-admin/edit.php | 2,777 ▲83 | 3.28 ▲0.04 | 64.19 ▼1.19 | 155.88 ▲13.07 |
Add New Post /wp-admin/post-new.php | 1,707 ▲46 | 18.90 ▼2.79 | 469.05 ▲46.84 | 161.50 ▲7.17 |
Media Library /wp-admin/upload.php | 1,781 ▲83 | 5.58 ▲0.10 | 144.58 ▼0.53 | 208.23 ▲21.94 |
Add New /wp-admin/post-new.php?post_type=edgegallery | 2,992 | 5.78 | 104.45 | 173.24 |
Gallery Settings /wp-admin/edit.php?post_type=edgegallery&page=gallery_settings | 1,080 | 2.61 | 55.77 | 113.98 |
Freemius Debug [v.2.4.1] /wp-admin/admin.php?page=freemius | 1,497 | 2.86 | 58.23 | 113.05 |
All Galleries /wp-admin/edit.php?post_type=edgegallery | 1,480 | 3.20 | 63.97 | 128.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/edge-gallery/freemius/includes/class-freemius.php+8540
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 4 options in the database
- fs_gdpr
- fs_active_plugins
- fs_debug_mode
- fs_accounts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/edge-gallery/freemius/templates/ajax-loader.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/edge-gallery/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/edge-gallery/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/edge-gallery/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/edge-gallery/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/edge-gallery/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/edge-gallery/includes/metaboxes.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edge-gallery/includes/functions.php:84
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/edge-gallery/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/edge-gallery/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/edge-gallery/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Requires at least: Version format is invalid
edge-gallery/edge-gallery.php 92% from 13 tests
The main file in "Wordpress Gallery Plugin - Edge Photo Gallery" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin42,017 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 7,376 | 16,182 | 31,616 |
JavaScript | 7 | 1,280 | 319 | 4,198 |
CSS | 17 | 127 | 94 | 3,519 |
SVG | 2 | 1 | 0 | 2,684 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,895)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 88.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,895.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,137 | |
▷ Static methods | 173 | 15.22% |
▷ Public methods | 795 | 69.92% |
▷ Protected methods | 15 | 1.32% |
▷ Private methods | 327 | 28.76% |
Functions | 121 | |
▷ Named functions | 120 | 99.17% |
▷ Anonymous functions | 1 | 0.83% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 100.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
20 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-board-hover.png | 4.97KB | 2.18KB | ▼ 56.03% |
images/GalleryEditPremium04.png | 16.48KB | 7.41KB | ▼ 55.04% |
images/Settings.png | 77.81KB | 16.49KB | ▼ 78.81% |
images/icon-board.png | 4.81KB | 2.09KB | ▼ 56.53% |
images/remove-icons-white.png | 2.70KB | 0.49KB | ▼ 81.85% |