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.25MB] [CPU: ▼3.83ms] Passed 4 tests
This is a short check of server-side resources used by Gallery Block (Meow Gallery)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 43.81 ▲0.69 |
Dashboard /wp-admin | 3.64 ▲0.29 | 51.56 ▼8.75 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 51.08 ▲3.83 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 88.82 ▼11.10 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.66 ▲5.94 |
Gallery /wp-admin/admin.php?page=mgl_settings | 3.47 | 36.38 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.67 | 54.47 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
mgl_options |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Gallery Block (Meow Gallery)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲204 | 21.23 ▲6.96 | 1.71 ▲0.11 | 39.21 ▼1.81 |
Dashboard /wp-admin | 2,359 ▲182 | 11.39 ▲5.74 | 271.14 ▲172.22 | 42.97 ▼0.54 |
Posts /wp-admin/edit.php | 2,275 ▲175 | 10.26 ▲8.31 | 97.81 ▲57.39 | 37.50 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,729 | 19.66 ▼3.39 | 853.77 ▲248.40 | 40.37 ▼13.41 |
Media Library /wp-admin/upload.php | 1,576 ▲179 | 13.02 ▲8.79 | 144.42 ▲47.33 | 42.00 ▲0.99 |
Gallery /wp-admin/admin.php?page=mgl_settings | 1,308 | 11.47 | 164.85 | 42.92 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,772 | 12.14 | 139.02 | 74.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- mgl_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/meow-gallery/classes/builders/tiles.css.php:7
- > PHP Fatal error
Uncaught Error: Class 'Meow_MGL_Builders_Core' not found in wp-content/plugins/meow-gallery/classes/builders/tiles.php:3
- > PHP Notice
Undefined variable: isPreview in wp-content/plugins/meow-gallery/classes/builders/tiles-php.css.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/meow-gallery/classes/builders/tiles-php.css.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/meow-gallery/classes/builders/masonry.css.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/meow-gallery/classes/builders/cascade.css.php:7
- > PHP Fatal error
Uncaught Error: Class 'Meow_MGL_Builders_Core' not found in wp-content/plugins/meow-gallery/classes/builders/raw.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/meow-gallery/classes/builders/horizontal.css.php:3
- > PHP Notice
Undefined variable: columns in wp-content/plugins/meow-gallery/classes/builders/square.css.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/meow-gallery/classes/builders/cell.tpl.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in meow-gallery/assets to your readme.txt
meow-gallery/meow-gallery.php Passed 13 tests
"Gallery Block (Meow Gallery)" version 5.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Gallery system built for photographers, by photographers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,193 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 441 | 194 | 2,584 |
JavaScript | 18 | 183 | 129 | 1,580 |
Bourne Shell | 1 | 13 | 8 | 21 |
SVG | 1 | 0 | 0 | 6 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 18 | 13.53% |
▷ Public methods | 125 | 93.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 6.02% |
Functions | 22 | |
▷ Named functions | 8 | 36.36% |
▷ Anonymous functions | 14 | 63.64% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/img/1x1.png | 0.07KB | 0.09KB | 0.00% |
app/img/layout-carousel.png | 1.13KB | 0.48KB | ▼ 57.71% |
app/img/layout-cascade.png | 0.65KB | 0.15KB | ▼ 76.28% |
app/img/layout-square.png | 0.68KB | 0.16KB | ▼ 76.55% |
app/img/layout-map.png | 1.96KB | 0.91KB | ▼ 53.90% |