Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/class/masonry_custom_cpt.php+56
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.49MB] [CPU: ▼47.67ms] Passed 4 tests
A check of server-side resources used by YumJam Masonry Layout for Posts and Custom Post Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.50 ▼0.97 | 6.69 ▼31.95 |
Dashboard /wp-admin | 2.52 ▼0.79 | 9.94 ▼42.52 |
Posts /wp-admin/edit.php | 2.52 ▼0.84 | 8.09 ▼37.60 |
Add New Post /wp-admin/post-new.php | 2.52 ▼3.37 | 8.56 ▼78.59 |
Media Library /wp-admin/upload.php | 2.52 ▼0.71 | 6.82 ▼25.19 |
Colours /wp-admin/edit-tags.php?taxonomy=color&post_type=custom | 2.52 | 8.72 |
YumJam Masonry /wp-admin/admin.php?page=yumjam_masonry | 2.52 | 6.96 |
Shortcode Builder /wp-admin/admin.php?page=yumjam_masonry_ | 2.52 | 7.52 |
All Bricks /wp-admin/edit.php?post_type=custom | 2.52 | 6.22 |
Add New /wp-admin/post-new.php?post_type=custom | 2.52 | 7.20 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by YumJam Masonry Layout for Posts and Custom Post Types
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,244 ▲498 | 16.15 ▲1.47 | 8.55 ▲6.50 | 47.74 ▲5.76 |
Dashboard /wp-admin | 2,533 ▲342 | 7.00 ▲1.08 | 133.86 ▲15.34 | 40.36 ▼8.85 |
Posts /wp-admin/edit.php | 2,447 ▲361 | 3.40 ▲1.35 | 64.10 ▲26.10 | 31.47 ▼3.07 |
Add New Post /wp-admin/post-new.php | 6,812 ▲5,298 | 26.63 ▲8.96 | 984.20 ▲298.54 | 42.13 ▼9.16 |
Media Library /wp-admin/upload.php | 1,572 ▲187 | 4.72 ▲0.52 | 85.55 ▼13.04 | 45.33 ▲1.31 |
Colours /wp-admin/edit-tags.php?taxonomy=color&post_type=custom | 1,616 | 3.79 | 54.41 | 28.37 |
YumJam Masonry /wp-admin/admin.php?page=yumjam_masonry | 1,269 | 3.63 | 46.83 | 25.97 |
Shortcode Builder /wp-admin/admin.php?page=yumjam_masonry_ | 2,647 | 4.45 | 116.26 | 38.12 |
All Bricks /wp-admin/edit.php?post_type=custom | 1,474 | 3.61 | 54.44 | 27.24 |
Add New /wp-admin/post-new.php?post_type=custom | 3,303 | 8.30 | 222.47 | 63.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/class/masonry_custom_cpt.php+56
Trying to access array offset on value of type null
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=custom
- > Notice in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/class/masonry_custom_cpt.php+56
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/templates/format-image.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function edit_post_link() in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/templates/format-video.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/templates/template-brick.php:1
- > PHP Notice
Trying to get property 'post_content' of non-object in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/templates/format-video.php on line 9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/templates/format-standard.php:6
- > PHP Notice
Undefined variable: video in wp-content/plugins/yumjam-masonry-layout-for-posts-and-custom-post-types/templates/format-video.php on line 37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
yumjam-masonry-layout-for-posts-and-custom-post-types/yumjam_masonry.php 92% from 13 tests
This is the main PHP file of "YumJam Masonry Layout for Posts and Custom Post Types" version 0.8.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("yumjam-masonry-layout-for-posts-and-custom-post-types.php" instead of "yumjam_masonry.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected5,570 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 293 | 103 | 2,012 |
PHP | 10 | 255 | 324 | 1,535 |
SVG | 2 | 0 | 0 | 973 |
CSS | 6 | 134 | 69 | 916 |
LESS | 1 | 13 | 3 | 125 |
Sass | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 54.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 59 | |
▷ Static methods | 5 | 8.47% |
▷ Public methods | 50 | 84.75% |
▷ Protected methods | 1 | 1.69% |
▷ Private methods | 8 | 13.56% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
14 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/grid-template-6.png | 0.77KB | 0.17KB | ▼ 77.65% |
lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/grid-template-7.png | 0.74KB | 0.15KB | ▼ 79.76% |
assets/images/grid-template-8.png | 0.75KB | 0.16KB | ▼ 78.15% |
assets/images/grid-template-2.png | 0.75KB | 0.16KB | ▼ 78.39% |