Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.46MB] [CPU: ▲31.77ms] 75% from 4 tests
A check of server-side resources used by Pretty Grid - WordPress Images Gallery, Slider, and Carousel Plugin
It is recommended to improve the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.46MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 63.81 ▲25.32 |
Dashboard /wp-admin | 9.22 ▲5.92 | 80.97 ▲37.08 |
Posts /wp-admin/edit.php | 9.22 ▲5.87 | 85.07 ▲37.04 |
Add New Post /wp-admin/post-new.php | 10.20 ▲4.31 | 111.83 ▲27.99 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 69.06 ▲36.73 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 9.22 | 64.23 |
Server storage [IO: ▲5.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,615 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
fs_debug_mode |
can_compress_scripts |
fs_accounts |
db_upgraded |
Browser metrics Passed 4 tests
Pretty Grid - WordPress Images Gallery, Slider, and Carousel Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲211 | 13.57 ▼0.82 | 11.37 ▲9.58 | 28.20 ▼9.35 |
Dashboard /wp-admin | 2,235 ▲54 | 5.66 ▼0.03 | 92.16 ▼25.90 | 40.75 ▼0.97 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.05 ▲0.07 | 39.85 ▼0.53 | 38.57 ▲3.03 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.57 ▲0.28 | 597.82 ▼50.50 | 67.43 ▲8.36 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.26 ▼0.01 | 99.09 ▲2.81 | 46.95 ▲6.09 |
Freemius Debug [v.2.5.4.2] /wp-admin/admin.php?page=freemius | 1,089 | 2.07 | 26.91 | 27.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/pretty-grid/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pretty-grid/admin/views/shortcode/twitter.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pretty-grid/admin/views/shortcode/vimeo.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pretty-grid/admin/views/field/wizard/general/post.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pretty-grid/admin/views/field/wizard/general/vimeo.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function pretty_grid_field_settings_components() in wp-content/plugins/pretty-grid/admin/views/field/wizard/sections/tab-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pretty-grid/admin/views/shortcode/slider/theme-3.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pretty-grid/admin/views/field/wizard/general/images.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pretty-grid/admin/views/shortcode/slider/theme-1.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pretty-grid/admin/views/field/wizard/general/woocommerce.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pretty-grid/admin/views/shortcode/images.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in pretty-grid/assets to your readme.txt
pretty-grid/pretty-grid.php Passed 13 tests
The primary PHP file in "Pretty Grid - WordPress Images Gallery, Slider, and Carousel Plugin" version 1.3.0 is used by WordPress to initiate all plugin functionality
53 characters long description:
WordPress Images Gallery, Slider, and Carousel Plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin50,962 lines of code in 1,501 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 8,848 | 18,558 | 37,020 |
JavaScript | 31 | 1,164 | 916 | 6,853 |
CSS | 21 | 674 | 91 | 5,530 |
SVG | 1,280 | 1 | 0 | 1,345 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 66.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 6 | 8.57% |
▷ Concrete classes | 64 | 91.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,406 | |
▷ Static methods | 203 | 14.44% |
▷ Public methods | 998 | 70.98% |
▷ Protected methods | 25 | 1.78% |
▷ Private methods | 383 | 27.24% |
Functions | 114 | |
▷ Named functions | 114 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 153 | |
▷ Global constants | 101 | 66.01% |
▷ Class constants | 52 | 33.99% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/pretty-grid.png | 22.55KB | 8.24KB | ▼ 63.44% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/prettygrid.png | 21.69KB | 8.41KB | ▼ 61.26% |