Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.06ms] Passed 4 tests
Analyzing server-side resources used by Torque Masonry Gallery for Divi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 22.77 ▼17.67 |
Dashboard /wp-admin | 3.35 ▼0.00 | 43.68 ▼15.17 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.37 ▼1.36 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.86 ▲4.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.06 ▲1.97 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Torque Masonry Gallery for Divi: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼292 | 14.49 ▼0.13 | 0.45 ▼1.24 | 16.68 ▼25.59 |
Dashboard /wp-admin | 2,189 ▲12 | 5.64 ▼0.02 | 92.69 ▼9.23 | 42.53 ▲0.72 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 39.32 ▲2.84 | 35.94 ▲2.14 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.14 ▼5.08 | 594.55 ▼82.03 | 78.35 ▲25.62 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.16 ▼0.06 | 101.98 ▼6.80 | 46.43 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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)
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
Almost there! Just fix the following items
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: image_data in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/paw-masonry-gallery/includes/views/item.php:10
- > PHP Notice
Undefined variable: image_data in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 2
- > PHP Notice
Undefined variable: image_data in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 2
- > PHP Notice
Undefined variable: image_data in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 6
- > PHP Notice
Undefined variable: image_data in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function TorqueMasonryGallery\\esc_attr() in wp-content/plugins/paw-masonry-gallery/includes/helper.php:26
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/paw-masonry-gallery/includes/views/item.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: divi module, gallery, divi, masonry, builder
paw-masonry-gallery/paw-masonry-gallery.php Passed 13 tests
"Torque Masonry Gallery for Divi" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
The fastest and easiest way to create a responsive masonry gallery.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,884 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 3 | 8 | 3,348 |
PHP | 6 | 162 | 15 | 786 |
CSS | 3 | 0 | 0 | 738 |
JSON | 1 | 0 | 0 | 6 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 7 | 31.82% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 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
PNG images were not found in this plugin