Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▲3.78ms] Passed 4 tests
A check of server-side resources used by Grid Accordion
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.61 | 42.32 ▼3.11 |
Dashboard /wp-admin | 4.31 ▲1.01 | 55.73 ▲0.65 |
Posts /wp-admin/edit.php | 4.37 ▲1.00 | 54.63 ▲7.39 |
Add New Post /wp-admin/post-new.php | 6.84 ▲0.95 | 101.08 ▲10.19 |
Media Library /wp-admin/upload.php | 4.18 ▲0.94 | 67.85 ▲33.72 |
Add New /wp-admin/admin.php?page=grid-accordion-new | 4.23 | 44.61 |
Documentation /wp-admin/admin.php?page=grid-accordion-documentation | 4.18 | 48.07 |
Plugin Settings /wp-admin/admin.php?page=grid-accordion-settings | 4.19 | 40.89 |
Add-ons /wp-admin/admin.php?page=grid-accordion-add-ons | 4.28 | 169.00 |
All Accordions /wp-admin/admin.php?page=grid-accordion | 4.22 | 42.55 |
Server storage [IO: ▲2.82MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 125 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_gridaccordion_layers |
wp_gridaccordion_panels |
wp_gridaccordion_accordions |
New WordPress options |
---|
grid_accordion_version |
widget_recent-comments |
widget_bqw-grid-accordion-widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Grid Accordion
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲66 | 14.32 ▼0.03 | 1.75 ▲0.10 | 42.56 ▲0.53 |
Dashboard /wp-admin | 2,218 ▲41 | 5.53 ▼0.12 | 97.16 ▲9.85 | 69.08 ▲26.17 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 1.96 ▼0.05 | 41.10 ▲0.81 | 34.89 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,714 ▲175 | 22.48 ▼0.69 | 783.65 ▲139.17 | 41.57 ▼24.41 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.24 ▲0.02 | 146.64 ▲40.95 | 59.06 ▲16.12 |
Add New /wp-admin/admin.php?page=grid-accordion-new | 2,429 | 5.98 | 103.50 | 71.14 |
Documentation /wp-admin/admin.php?page=grid-accordion-documentation | 3,427 | 4.00 | 82.07 | 154.89 |
Plugin Settings /wp-admin/admin.php?page=grid-accordion-settings | 1,226 | 3.64 | 43.66 | 75.22 |
Add-ons /wp-admin/admin.php?page=grid-accordion-add-ons | 1,128 | 3.63 | 48.86 | 78.02 |
All Accordions /wp-admin/admin.php?page=grid-accordion | 1,174 | 3.64 | 44.65 | 55.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 7 options in the database
- widget_bqw-grid-accordion-widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/grid-accordion/admin/views/panel/panel.php
- > /wp-content/plugins/grid-accordion/admin/views/add-ons/add-on-more-details.php
- 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: panel_type in wp-content/plugins/grid-accordion/admin/views/panel/panel.php on line 16
- > PHP Notice
Undefined variable: panel_type in wp-content/plugins/grid-accordion/admin/views/panel/panel.php on line 12
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/grid-accordion/admin/views/accordion-settings/default-panel.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/grid-accordion/admin/views/accordion-settings/default-panel.php on line 4
- > PHP Notice
Undefined variable: panel_type in wp-content/plugins/grid-accordion/admin/views/panel/panel.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'BQW_GA_Layer_Renderer' not found in wp-content/plugins/grid-accordion/public/class-video-layer-renderer.php:7
- > PHP Fatal error
Uncaught Error: Class 'BQW_GA_Dynamic_Panel_Renderer' not found in wp-content/plugins/grid-accordion/public/class-posts-panel-renderer.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/grid-accordion/admin/views/panel-editors/html-editor.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/grid-accordion/admin/views/accordions/accordions.php:2
- > PHP Fatal error
Uncaught Error: Class 'BQW_GA_Panel_Renderer' not found in wp-content/plugins/grid-accordion/public/class-dynamic-panel-renderer.php:7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: lightbox grid, post grid, image grid, grid accordion, grid plugin...
grid-accordion/grid-accordion.php Passed 13 tests
This is the main PHP file of "Grid Accordion" version 1.9.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Responsive and touch-enabled grid accordion.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin48,377 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 28,338 |
JavaScript | 16 | 2,971 | 2,652 | 10,102 |
PHP | 53 | 1,039 | 2,184 | 5,604 |
CSS | 11 | 507 | 79 | 2,607 |
HTML | 1 | 165 | 0 | 1,622 |
SVG | 1 | 0 | 0 | 40 |
Markdown | 1 | 13 | 0 | 38 |
Sass | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 205 | |
▷ Static methods | 30 | 14.63% |
▷ Public methods | 138 | 67.32% |
▷ Protected methods | 55 | 26.83% |
▷ Private methods | 12 | 5.85% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.50MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/css/images/all-buttons.png | 1.25KB | 0.89KB | ▼ 28.43% |
admin/assets/css/images/video-placeholder-button.png | 0.84KB | 0.93KB | 0.00% |
documentation/assets/images/add-posts-panels-2.png | 23.61KB | 9.75KB | ▼ 58.70% |
documentation/assets/images/layers-editor.png | 17.73KB | 7.57KB | ▼ 57.29% |
documentation/assets/images/add-image-panels.png | 121.05KB | 43.27KB | ▼ 64.25% |