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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲0.68ms] Passed 4 tests
This is a short check of server-side resources used by BM Grid
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 50.35 ▲3.33 |
Dashboard /wp-admin | 3.76 ▲0.46 | 56.42 ▼4.25 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 64.69 ▲7.25 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 101.02 ▼3.62 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 45.49 ▲9.14 |
General Options /wp-admin/edit.php?post_type=bm-grid&page=ux-gallery-general-options | 3.65 | 39.45 |
All Grids /wp-admin/edit.php?post_type=bm-grid | 3.72 | 44.31 |
Add New /wp-admin/post-new.php?post_type=bm-grid | 3.76 | 48.98 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for BM Grid
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲194 | 14.06 ▼0.59 | 16.62 ▲14.86 | 36.78 ▼8.26 |
Dashboard /wp-admin | 2,229 ▲49 | 5.61 ▼0.04 | 93.86 ▼1.32 | 61.69 ▲19.17 |
Posts /wp-admin/edit.php | 2,134 ▲37 | 2.02 ▼0.01 | 39.75 ▲3.12 | 37.19 ▲0.65 |
Add New Post /wp-admin/post-new.php | 6,301 ▲4,775 | 26.03 ▲2.86 | 897.58 ▲202.55 | 38.06 ▼17.08 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.17 ▼0.03 | 112.67 ▲5.57 | 47.96 ▲4.00 |
General Options /wp-admin/edit.php?post_type=bm-grid&page=ux-gallery-general-options | 851 | 2.06 | 28.56 | 26.79 |
All Grids /wp-admin/edit.php?post_type=bm-grid | 1,098 | 1.91 | 30.93 | 29.50 |
Add New /wp-admin/post-new.php?post_type=bm-grid | 2,508 | 2.92 | 62.55 | 75.63 |
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
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bm-grid/inc_php/interface/template/masonry-list.php:373
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bm-grid/inc_php/interface/template/irregular-list.php:152
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bm-grid/inc_php/interface/shortcode.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bm-grid/inc_php/interface/functions.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bm-grid/inc_php/admin/ajax.php:33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=bm-grid
- > Javascript (severe) in unknown
/wp-content/plugins/bm-grid/js/admin-min.js?ver=0.0.1 7:220 Uncaught ReferenceError: _ is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== bm-grid ===
) - Tags: Please delete some tags, you are using 14 tag instead of maximum 10
bm-grid/bm-grid.php Passed 13 tests
The main PHP file in "BM Grid" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
BM Grid - Unlimited grid layout with Drag&Drop custom portfolio builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,536 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 313 | 202 | 1,945 |
CSS | 5 | 120 | 98 | 1,164 |
JavaScript | 8 | 224 | 132 | 1,134 |
PO File | 1 | 125 | 150 | 267 |
SVG | 2 | 0 | 1 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/skin/photoswipe/default/light-skin.png | 1.96KB | 0.72KB | ▼ 63.38% |
images/arrow.png | 1.29KB | 0.48KB | ▼ 63.03% |
css/skin/photoswipe/default/default-skin.png | 0.53KB | 0.72KB | 0.00% |
images/gallery.png | 1.60KB | 0.66KB | ▼ 58.82% |