Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.88ms] Passed 4 tests
Analyzing server-side resources used by Simple Masonry Layout
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.92 ▲0.80 |
Dashboard /wp-admin | 3.41 ▲0.06 | 47.11 ▼12.73 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.84 ▲2.24 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.91 ▼9.03 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 32.18 ▼2.56 |
Add New Layout /wp-admin/post-new.php?post_type=sm-masonry-layout | 3.38 | 61.01 |
All Layouts /wp-admin/edit.php?post_type=sm-masonry-layout | 3.38 | 36.29 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Simple Masonry Layout: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 13.56 ▼1.00 | 12.51 ▲10.86 | 38.15 ▲0.31 |
Dashboard /wp-admin | 2,222 ▲42 | 5.62 ▼0.09 | 92.05 ▲5.64 | 43.75 ▲1.30 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.94 ▼0.00 | 40.41 ▲4.71 | 35.80 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 18.14 ▼4.88 | 584.46 ▼97.76 | 64.14 ▼7.07 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.20 ▲0.01 | 96.82 ▼2.59 | 42.14 ▼1.83 |
Add New Layout /wp-admin/post-new.php?post_type=sm-masonry-layout | 1,750 | 2.49 | 50.38 | 61.84 |
All Layouts /wp-admin/edit.php?post_type=sm-masonry-layout | 1,101 | 1.97 | 29.43 | 31.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: wp_query in wp-content/plugins/simple-masonry-layout/views/shortcode-template.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-masonry-layout/views/metaboxes.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/simple-masonry-layout/views/shortcode-template.php:1
- > PHP Notice
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 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simple-masonry-layout ===
)
simple-masonry-layout/simple-masonry-layout.php Passed 13 tests
"Simple Masonry Layout" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
With simple shortcode, Masonry Layout in action.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,118 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 101 | 51 | 505 |
CSS | 3 | 2 | 7 | 357 |
JavaScript | 6 | 43 | 47 | 256 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 1.40MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 359.74KB | 96.16KB | ▼ 73.27% |
assets/images/arrow.png | 0.24KB | 0.19KB | ▼ 21.95% |
screenshot-2.png | 329.14KB | 84.74KB | ▼ 74.25% |
screenshot-3.png | 457.03KB | 109.74KB | ▼ 75.99% |
(invalid) screenshot-1.png | 282.88KB | 0.00KB | ▼ 100.00% |