Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.04ms] Passed 4 tests
This is a short check of server-side resources used by Masonry Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.32 ▼6.50 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.35 ▼5.72 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.42 ▲4.34 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.73 ▼0.89 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.93 ▼3.06 |
Masonry /wp-admin/options-general.php?page=siteorigin_masonry | 3.28 | 33.15 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_siteorigin-masonry |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Masonry Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.12 | 1.76 ▼0.08 | 45.68 ▲3.01 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.98 | 94.73 ▼22.28 | 38.71 ▼9.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.02 | 39.10 ▲4.52 | 35.00 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6,506 ▲4,973 | 20.43 ▼2.82 | 945.18 ▲283.21 | 58.54 ▲5.13 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.17 ▼0.05 | 98.51 ▼7.27 | 43.75 ▼2.72 |
Masonry /wp-admin/options-general.php?page=siteorigin_masonry | 801 | 2.19 | 23.56 | 27.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_siteorigin-masonry
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/so-masonry/tpl/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/so-masonry/inc/options.php:6
- > PHP Notice
Undefined variable: posts in wp-content/plugins/so-masonry/tpl/masonry.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/so-masonry/tpl/masonry.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/so-masonry/inc/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/so-masonry/so-masonry.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #3 in so-masonry/assets to your readme.txt
so-masonry/so-masonry.php Passed 13 tests
The main file in "Masonry Widget" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Gives you a stunning masonry layout for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,188 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 122 | 122 | 433 |
PHP | 5 | 57 | 43 | 309 |
LESS | 2 | 49 | 1 | 301 |
CSS | 1 | 46 | 0 | 145 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin