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: ▲2.21MB] [CPU: ▲15.65ms] Passed 4 tests
Server-side resources used by Customizable WordPress Gallery Plugin - Modula Image Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.91 ▲1.44 | 43.70 ▲1.01 |
Dashboard /wp-admin | 5.82 ▲2.47 | 84.58 ▲22.22 |
Posts /wp-admin/edit.php | 5.85 ▲2.48 | 77.45 ▲27.36 |
Add New Post /wp-admin/post-new.php | 8.41 ▲2.52 | 112.69 ▲12.02 |
Media Library /wp-admin/upload.php | 5.68 ▲2.45 | 60.86 ▲27.99 |
Free vs Premium /wp-admin/admin.php?page=modula-lite-vs-pro | 5.66 | 59.71 |
Welcome /wp-admin/edit.php?post_type=modula-gallery&page=wpchill-dashboard | 5.65 | 51.75 |
Add New /wp-admin/post-new.php?post_type=modula-gallery | 6.49 | 83.30 |
Extensions /wp-admin/edit.php?post_type=modula-gallery&page=modula-addons | 5.72 | 132.11 |
Galleries /wp-admin/edit.php?post_type=modula-gallery | 5.73 | 59.40 |
Settings /wp-admin/edit.php?post_type=modula-gallery&page=modula | 5.67 | 55.55 |
Server storage [IO: ▲3.02MB] [DB: ▲0.03MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 246 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_modula_gallery_widget |
widget_recent-posts |
modula-rate-time |
widget_recent-comments |
modula_version |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Customizable WordPress Gallery Plugin - Modula Image Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲114 | 14.35 ▲0.10 | 1.54 ▼0.22 | 40.65 ▼4.00 |
Dashboard /wp-admin | 2,248 ▲68 | 5.67 ▲0.09 | 95.74 ▼5.40 | 87.50 ▲48.12 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 1.97 ▲0.03 | 39.38 ▼0.50 | 36.27 ▼4.39 |
Add New Post /wp-admin/post-new.php | 6,258 ▲4,732 | 19.33 ▼4.09 | 1,002.50 ▲401.65 | 37.55 ▼11.68 |
Media Library /wp-admin/upload.php | 1,466 ▲72 | 4.18 ▼0.04 | 103.03 ▲4.85 | 81.89 ▲40.87 |
Free vs Premium /wp-admin/admin.php?page=modula-lite-vs-pro | 1,437 | 2.02 | 26.27 | 42.35 |
Defaults /wp-admin/edit.php?post_type=modula-gallery&page=#gallery-defaults | 28 | 0.41 | 0.11 | 3.88 |
Welcome /wp-admin/edit.php?post_type=modula-gallery&page=wpchill-dashboard | 1,423 | 2.44 | 29.17 | 40.61 |
Add New /wp-admin/post-new.php?post_type=modula-gallery | 6,267 | 7.37 | 218.63 | 136.82 |
Extensions /wp-admin/edit.php?post_type=modula-gallery&page=modula-addons | 1,273 | 2.23 | 29.96 | 45.83 |
Galleries /wp-admin/edit.php?post_type=modula-gallery | 1,013 | 1.92 | 32.22 | 46.17 |
Settings /wp-admin/edit.php?post_type=modula-gallery&page=modula | 1,293 | 2.12 | 29.40 | 33.62 |
Albums /wp-admin/edit.php?post_type=modula-gallery&page=#modula-albums | 28 | 0.41 | 0.11 | 3.62 |
Defaults /wp-admin/edit.php?post_type=modula-gallery&page=#albums-defaults | 28 | 0.41 | 0.08 | 4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_modula_gallery_widget
- widget_theysaidso_widget
- modula_version
- widget_recent-comments
- theysaidso_admin_options
- modula-rate-time
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 38× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(MODULA_PATHincludes/duplicator/modula-duplicator-functions.php): failed to open stream: No such file or directory in wp-content/plugins/modula-best-grid-gallery/includes/duplicator/class-modula-duplicator.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/modula-best-grid-gallery/includes/public/templates/items/item-none.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/modula-best-grid-gallery/includes/admin/templates/modal/modula-modal-gallery-defaults-upgrade.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/modula-best-grid-gallery/includes/admin/class-modula-onboarding.php on line 3
- > PHP Warning
Use of undefined constant MODULA_PATH - assumed 'MODULA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/modula-best-grid-gallery/includes/duplicator/class-modula-duplicator.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/modula-best-grid-gallery/includes/admin/class-modula-admin.php:16
- > PHP Fatal error
Uncaught Error: Class 'Modula_Admin_Helpers' not found in wp-content/plugins/modula-best-grid-gallery/includes/admin/tabs/modula.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/modula-best-grid-gallery/includes/libraries/class-modula-review.php:13
- > PHP Fatal error
Uncaught Error: Class 'Modula_Helper' not found in wp-content/plugins/modula-best-grid-gallery/includes/public/templates/modula-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/modula-best-grid-gallery/includes/admin/templates/modal/modula-modal-albums-upgrade.php:2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=modula-gallery&page=#gallery-defaults
- > Network (severe)
wp-admin/edit.php?post_type=modula-gallery&page=#gallery-defaults - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=modula-gallery&page=#modula-albums
- > Network (severe)
wp-admin/edit.php?post_type=modula-gallery&page=#modula-albums - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=modula-gallery&page=#albums-defaults
- > Network (severe)
wp-admin/edit.php?post_type=modula-gallery&page=#albums-defaults - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Screenshots: These screenshots lack descriptions #10, #11, #12, #13, #14, #16, #17, #18, #19, #20, #21, #5, #6, #7, #8, #9 in modula-best-grid-gallery/assets to your readme.txt
modula-best-grid-gallery/Modula.php 92% from 13 tests
The main PHP script in "Customizable WordPress Gallery Plugin - Modula Image Gallery" version 2.7.9 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("modula-best-grid-gallery.php" instead of "Modula.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected46,474 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 78 | 4,005 | 4,259 | 22,911 |
PHP | 60 | 3,209 | 2,686 | 11,257 |
CSS | 31 | 1,670 | 561 | 10,765 |
PO File | 1 | 405 | 485 | 920 |
Sass | 2 | 102 | 2 | 416 |
SVG | 6 | 1 | 2 | 123 |
JSX | 2 | 13 | 9 | 49 |
JSON | 1 | 0 | 0 | 33 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 35.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 1 | 2.33% |
Methods | 451 | |
▷ Static methods | 43 | 9.53% |
▷ Public methods | 365 | 80.93% |
▷ Protected methods | 64 | 14.19% |
▷ Private methods | 22 | 4.88% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 12 | |
▷ Global constants | 8 | 66.67% |
▷ Class constants | 4 | 33.33% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
44 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/addons/modula-slider.png | 3.70KB | 3.82KB | 0.00% |
assets/images/addons/modula-whitelabel.png | 5.85KB | 5.90KB | 0.00% |
assets/images/addons/modula-protection.png | 11.63KB | 12.15KB | 0.00% |
assets/images/dashboard/blog-default.png | 44.18KB | 42.50KB | ▼ 3.80% |
assets/images/addons/modula-speedup.png | 11.54KB | 12.35KB | 0.00% |