Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.66ms] Passed 4 tests
Analyzing server-side resources used by Simple Masonry Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.86 ▲0.50 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.52 ▼5.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.23 ▼0.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.03 ▼11.68 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.04 ▼1.80 |
Simple Masonry Gallery /wp-admin/options-general.php?page=simplemasonry | 3.21 | 30.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 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-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Masonry Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 13.42 ▼0.95 | 10.16 ▲8.39 | 45.73 ▲3.24 |
Dashboard /wp-admin | 2,205 ▲31 | 5.61 ▲0.07 | 91.15 ▼10.02 | 37.61 ▼6.11 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.94 ▼0.02 | 39.27 ▲3.23 | 34.93 ▲0.83 |
Add New Post /wp-admin/post-new.php | 6,199 ▲4,672 | 18.88 ▼3.99 | 948.23 ▲241.68 | 57.21 ▼3.98 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.07 | 95.83 ▼12.79 | 40.96 ▼4.15 |
Simple Masonry Gallery /wp-admin/options-general.php?page=simplemasonry | 938 | 1.98 | 22.41 | 38.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-masonry-gallery/lib/class-simplemasonryadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-masonry-gallery/lib/class-simplemasonry.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-masonry-gallery/lib/class-simplemasonryadmin.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: block, gallery, jquery, masonry, images
simple-masonry-gallery/simplemasonry.php 92% from 13 tests
The principal PHP file in "Simple Masonry Gallery" v. 7.05 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-masonry-gallery.php" instead of "simplemasonry.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin685 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 89 | 233 | 511 |
JavaScript | 3 | 16 | 18 | 157 |
JSON | 1 | 0 | 0 | 17 |
CSS | 1 | 3 | 17 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin