Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲5.07MB] [CPU: ▲23.43ms] 50% from 4 tests
An overview of server-side resources used by WPTools Masonry Gallery & Posts For Divi
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,879.61ms on /wp-admin/admin.php?page=wptools-masonry-gallery-posts-for-divi)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.07MB on /wp-admin/edit-tags.php?taxonomy=wpt-attachment-cat&post_type=attachment)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.92 ▲5.46 | 72.58 ▲31.01 |
Dashboard /wp-admin | 8.94 ▲5.64 | 73.11 ▲18.96 |
Posts /wp-admin/edit.php | 8.94 ▲5.58 | 82.86 ▲27.72 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.62 | 123.27 ▲16.03 |
Media Library /wp-admin/upload.php | 8.94 ▲5.71 | 78.82 ▲40.61 |
WPTools Masonry Gallery & Posts For Divi /wp-admin/admin.php?page=wptools-masonry-gallery-posts-for-divi | 8.94 | 1,879.61 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.94 | 59.38 |
Categories /wp-admin/edit-tags.php?taxonomy=wpt-attachment-cat&post_type=attachment | 8.94 | 59.51 |
Server storage [IO: ▲3.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 257 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
fs_accounts |
fs_debug_mode |
db_upgraded |
fs_active_plugins |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPTools Masonry Gallery & Posts For Divi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲51 | 14.34 ▼0.17 | 1.99 ▼0.17 | 34.41 ▼8.65 |
Dashboard /wp-admin | 2,219 ▲42 | 5.57 ▼0.07 | 92.57 ▲2.85 | 46.32 ▲3.47 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.02 ▲0.08 | 42.74 ▲1.85 | 39.94 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 21.07 ▼1.92 | 674.95 ▲24.80 | 54.42 ▼5.00 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.11 ▼0.16 | 109.66 ▲2.55 | 51.48 ▲6.49 |
WPTools Masonry Gallery & Posts For Divi /wp-admin/admin.php?page=wptools-masonry-gallery-posts-for-divi | 983 | 1.65 | 29.08 | 62.94 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,089 | 1.69 | 23.95 | 37.86 |
Categories /wp-admin/edit-tags.php?taxonomy=wpt-attachment-cat&post_type=attachment | 1,264 | 2.27 | 27.14 | 33.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wptools-masonry-gallery-posts-for-divi/resources/views/masonry-image-gallery.php
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/includes/modules/MasonryPostTypeGallery/MasonryPostTypeGallery.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/vendor/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php:39
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/includes/modules/DiviMasonryExtension.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Pimple\\ServiceProviderInterface' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/vendor/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/vendor/pimple/pimple/src/Pimple/Tests/PimpleServiceProviderInterfaceTest.php:34
- > PHP Fatal error
Uncaught Error: Class 'WPT_Masonry_Divi_Modules\\MasonryPostTypeGallery\\MasonryPostTypeGallery' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/includes/modules/MasonryPostTypeGalleryFullWidth/MasonryPostTypeGalleryFullWidth.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/vendor/pimple/pimple/src/Pimple/Tests/Psr11/ContainerTest.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/vendor/psr/container/src/NotFoundExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'Pimple\\Container' not found in wp-content/plugins/wptools-masonry-gallery-posts-for-divi/includes/classes/Loader.php:9
- > PHP Fatal error
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 Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: masonry blogs, masonry image gallery, divi masonry blogs, divi masonry, divi masonry image gallery
wptools-masonry-gallery-posts-for-divi/wptools-masonry-gallery-posts-for-divi.php 85% from 13 tests
"WPTools Masonry Gallery & Posts For Divi" version 3.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected37,855 lines of code in 204 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 167 | 8,613 | 18,627 | 37,113 |
JavaScript | 9 | 45 | 71 | 246 |
JSON | 3 | 0 | 0 | 165 |
CSS | 20 | 14 | 0 | 111 |
reStructuredText | 1 | 94 | 135 | 97 |
SVG | 1 | 0 | 0 | 67 |
YAML | 1 | 5 | 0 | 35 |
XML | 1 | 1 | 0 | 13 |
Markdown | 1 | 5 | 0 | 8 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 53.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 2 | 2.38% |
▷ Concrete classes | 82 | 97.62% |
▷ Final classes | 2 | 2.44% |
Methods | 1,488 | |
▷ Static methods | 216 | 14.52% |
▷ Public methods | 1,097 | 73.72% |
▷ Protected methods | 17 | 1.14% |
▷ Private methods | 374 | 25.13% |
Functions | 166 | |
▷ Named functions | 102 | 61.45% |
▷ Anonymous functions | 64 | 38.55% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 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/wptools-masonry-gallery-posts-for-divi.png | 2.35KB | 1.54KB | ▼ 34.72% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |