Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲3.90MB] [CPU: ▲17.07ms] Passed 4 tests
This is a short check of server-side resources used by Grid
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.47 ▲3.97 | 64.84 ▲18.27 |
Dashboard /wp-admin | 7.49 ▲4.15 | 68.75 ▲20.63 |
Posts /wp-admin/edit.php | 7.49 ▲4.10 | 74.50 ▲17.97 |
Add New Post /wp-admin/post-new.php | 9.33 ▲3.41 | 118.74 ▲11.41 |
Media Library /wp-admin/upload.php | 7.49 ▲4.22 | 65.50 ▲27.56 |
The Grid AJAX /wp-admin/admin.php?page=grid_ajax | 7.49 | 56.84 |
Styles /wp-admin/admin.php?page=grid_styles | 7.49 | 53.70 |
delete reuse box /wp-admin/admin.php?page=grid_delete_reuse_box | 7.49 | 55.74 |
Settings /wp-admin/admin.php?page=grid_settings | 7.51 | 61.69 |
Container types /wp-admin/admin.php?page=grid_containers | 7.51 | 56.96 |
Privileges /wp-admin/admin.php?page=grid_privileges | 7.51 | 53.70 |
The Grid /wp-admin/admin.php?page=grid | 7.51 | 57.16 |
Reusable container /wp-admin/admin.php?page=grid_reuse_containers | 7.51 | 58.67 |
Reusable boxes /wp-admin/admin.php?page=grid_reuse_boxes | 7.51 | 62.65 |
edit reuse box /wp-admin/admin.php?page=grid_edit_reuse_box | 7.51 | 51.75 |
Server storage [IO: ▲15.13MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3,031 new files
Database: 14 new tables, 12 new options
New tables |
---|
wp_grid_slot_style |
wp_grid_container_type |
wp_grid_container |
wp_grid_slot |
wp_grid_container2slot |
wp_grid_nodes |
wp_grid_box |
wp_grid_grid |
wp_grid_box_style |
wp_grid_container_style |
... |
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
grid |
widget_recent-posts |
grid_post_search_enabled |
db_upgraded |
widget_theysaidso_widget |
grid_landing_page_enabled |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Grid
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 13.89 ▼0.48 | 1.92 ▲0.06 | 36.81 ▼8.34 |
Dashboard /wp-admin | 2,229 ▲52 | 5.59 ▲0.05 | 88.45 ▼5.64 | 75.61 ▲34.00 |
Posts /wp-admin/edit.php | 2,143 ▲46 | 2.00 ▼0.02 | 35.74 ▼3.64 | 36.16 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,564 ▲36 | 22.46 ▼0.69 | 610.96 ▼30.68 | 79.09 ▲24.61 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.13 ▼0.05 | 102.39 ▼0.40 | 67.90 ▲22.93 |
The Grid AJAX /wp-admin/admin.php?page=grid_ajax | 707 | 1.51 | 6.62 | 17.57 |
Styles /wp-admin/admin.php?page=grid_styles | 931 | 2.00 | 31.46 | 27.78 |
delete reuse box /wp-admin/admin.php?page=grid_delete_reuse_box | 726 | 1.12 | 6.87 | 21.11 |
Settings /wp-admin/admin.php?page=grid_settings | 1,182 | 2.19 | 24.15 | 28.33 |
Container types /wp-admin/admin.php?page=grid_containers | 1,312 | 3.09 | 39.56 | 70.50 |
Privileges /wp-admin/admin.php?page=grid_privileges | 1,073 | 2.00 | 23.51 | 26.94 |
The Grid /wp-admin/admin.php?page=grid | 819 | 1.99 | 24.12 | 23.67 |
Reusable container /wp-admin/admin.php?page=grid_reuse_containers | 1,050 | 5.06 | 131.49 | 76.38 |
Reusable boxes /wp-admin/admin.php?page=grid_reuse_boxes | 1,044 | 5.14 | 135.17 | 67.64 |
edit reuse box /wp-admin/admin.php?page=grid_edit_reuse_box | 1,388 | 5.94 | 106.73 | 112.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 14 tables in the database
- wp_grid_slot2box
- wp_grid_nodes
- wp_grid_box_style
- wp_grid_box_type
- wp_grid_grid
- wp_grid_container_type
- wp_grid_box
- wp_grid_container2slot
- wp_grid_slot_style
- wp_grid_schema
- ...
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- grid_post_search_enabled
- db_upgraded
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- grid_page_search_enabled
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=grid_ajax
- > Warning in wp-content/plugins/grid/lib/grid/classes/API.php+103
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=grid_edit_reuse_box
- > Notice in wp-content/plugins/grid/classes/ReuseBox.php+35
Undefined index: boxid
- > GET request to /wp-admin/admin.php?page=grid_delete_reuse_box
- > Error in wp-content/plugins/grid/classes/ReuseBox.php+52
Uncaught Error: Call to a member function getReuseBoxEditor() on null in wp-content/plugins/grid/classes/ReuseBox.php:52
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Palasthotel\Grid\WordPress\ReuseBox->delete_reuse_box()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown- > GET request to /wp-admin/admin.php?page=grid
- > Notice in wp-content/plugins/grid/classes/TheGrid.php+69
Undefined index: postid
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=grid_edit_reuse_box
- > POST request to /wp-admin/admin.php?noheader=1&page=grid_ajax
- > Notice in wp-content/plugins/grid/lib/grid/classes/Storage.php+202
Trying to access array offset on value of type null
SRP 0% 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
Almost there! Just fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/grid/lib/grid/css/grid-frontend/flexbox.css.php
- > /wp-content/plugins/grid/core/templates/wordpress/grid-box-search_form-editmode.tpl.php
- > /wp-content/plugins/grid/core/templates/wordpress/grid-box-media-editmode.tpl.php
- > /wp-content/plugins/grid/lib/grid/js/grid_htmlbox_ckeditor_config.js.php
- > /wp-content/plugins/grid/lib/grid/css/grid-frontend/table.css.php
- > /wp-content/plugins/grid/lib/grid/templates/components/grid.tpl.php
- 90× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/grid/lib/grid/js/grid_htmlbox_ckeditor_config.js.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\Grid\\WordPress\\PositionInPost' not found in wp-content/plugins/grid/deprecated-namespace.php:11
- > PHP Fatal error
Uncaught Error: Class 'grid_static_base_box' not found in wp-content/plugins/grid/lib/grid/components/grid_plaintext_box.php:3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/grid/lib/grid/js/grid_htmlbox_ckeditor_config.js.php on line 43
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/grid/core/templates/wordpress/grid-box-media.tpl.php:9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/grid/lib/grid/css/grid-frontend/flexbox.css.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'grid_html_box' not found in wp-content/plugins/grid/core/classes/wordpress/grid_wp_html_box.php:11
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\Grid\\WordPress\\_Component' not found in wp-content/plugins/grid/classes/ReuseBox.php:12
- > PHP Notice
Undefined variable: ckeditor_plugins in wp-content/plugins/grid/lib/grid/js/grid_htmlbox_ckeditor_config.js.php on line 83
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\Grid\\WordPress\\_Component' not found in wp-content/plugins/grid/classes/Settings.php:19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: grid, editor, admin, containerist, landingpage...
grid/wordpress_plugin.php 92% from 13 tests
The main PHP file in "Grid" ver. 2.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("grid.php" instead of "wordpress_plugin.php")
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin116,712 lines of code in 2,747 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 8 | 10 | 0 | 78,729 |
PHP | 114 | 3,048 | 7,218 | 21,133 |
JavaScript | 2,482 | 31 | 2,685 | 6,197 |
CSS | 102 | 1,215 | 663 | 6,003 |
Markdown | 15 | 1,130 | 0 | 3,793 |
HTML | 19 | 56 | 19 | 434 |
PO File | 2 | 136 | 153 | 332 |
JSON | 5 | 0 | 0 | 91 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 808)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 32.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 949.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 808.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 114 | |
▷ Abstract classes | 4 | 3.51% |
▷ Concrete classes | 110 | 96.49% |
▷ Final classes | 0 | 0.00% |
Methods | 960 | |
▷ Static methods | 78 | 8.12% |
▷ Public methods | 907 | 94.48% |
▷ Protected methods | 33 | 3.44% |
▷ Private methods | 20 | 2.08% |
Functions | 32 | |
▷ Named functions | 17 | 53.12% |
▷ Anonymous functions | 15 | 46.88% |
Constants | 121 | |
▷ Global constants | 70 | 57.85% |
▷ Class constants | 51 | 42.15% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
211 PNG files occupy 0.63MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/grid/assets/ckeditor/plugins/smiley/images/shades_smile.png | 1.18KB | 1.25KB | 0.00% |
lib/grid/assets/ckeditor/plugins/flash/images/placeholder.png | 0.25KB | 0.26KB | 0.00% |
lib/grid/assets/ckeditor/plugins/forms/icons/hidpi/radio.png | 1.39KB | 0.57KB | ▼ 59.40% |
lib/grid/assets/ckeditor/plugins/icons.png | 12.48KB | 6.46KB | ▼ 48.26% |
lib/grid/assets/ckeditor/plugins/smiley/images/embarrassed_smile.png | 1.12KB | 1.29KB | 0.00% |