Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.35MB] [CPU: ▲5.41ms] Passed 4 tests
This is a short check of server-side resources used by Custom Layouts - Post + Product grids made easy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.87 ▲1.40 | 44.52 ▲3.83 |
Dashboard /wp-admin | 4.69 ▲1.34 | 67.89 ▲5.00 |
Posts /wp-admin/edit.php | 4.75 ▲1.38 | 55.71 ▲6.12 |
Add New Post /wp-admin/post-new.php | 7.23 ▲1.34 | 112.32 ▲17.72 |
Media Library /wp-admin/upload.php | 4.55 ▲1.32 | 42.88 ▲6.69 |
Layouts /wp-admin/edit.php?post_type=cl-layout | 4.66 | 42.22 |
Settings /wp-admin/admin.php?page=custom-layouts-settings | 5.96 | 44.91 |
Templates /wp-admin/edit.php?post_type=cl-template | 4.66 | 46.31 |
Server storage [IO: ▲2.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 139 new files
Database: no new tables, 9 new options
New WordPress options |
---|
custom_layouts_version |
widget_recent-posts |
custom_layouts_transient_keys |
custom_layouts_transient_query_keys |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Custom Layouts - Post + Product grids made easy: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲109 | 14.35 ▲0.05 | 2.80 ▲1.14 | 38.44 ▼5.09 |
Dashboard /wp-admin | 2,266 ▲86 | 5.55 ▼0.08 | 90.17 ▲1.88 | 38.20 ▼3.62 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.03 ▲0.01 | 40.77 ▲5.99 | 35.61 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6,420 ▲4,893 | 30.24 ▲6.88 | 911.13 ▲307.39 | 36.45 ▼24.04 |
Media Library /wp-admin/upload.php | 1,470 ▲76 | 4.18 ▼0.03 | 98.54 ▼2.91 | 40.88 ▼2.16 |
Layouts /wp-admin/edit.php?post_type=cl-layout | 1,148 | 1.90 | 36.61 | 30.68 |
Settings /wp-admin/admin.php?page=custom-layouts-settings | 1,155 | 13.41 | 261.45 | 30.42 |
Templates /wp-admin/edit.php?post_type=cl-template | 1,140 | 1.92 | 30.45 | 30.75 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- custom_layouts_version
- custom_layouts_transient_keys
- can_compress_scripts
- custom_layouts_transient_query_keys
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-layouts/includes/admin/settings-page.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Layouts\\Upgrade\\v1_4_2\\add_action() in wp-content/plugins/custom-layouts/includes/upgrade/1.4.2.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Layouts\\Upgrade\\v1_4_8\\add_action() in wp-content/plugins/custom-layouts/includes/upgrade/1.4.8.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Layouts\\Upgrade\\v1_3_0\\add_action() in wp-content/plugins/custom-layouts/includes/upgrade/1.3.0.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Layouts\\Upgrade\\v1_4_0\\add_action() in wp-content/plugins/custom-layouts/includes/upgrade/1.4.0.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Layouts\\Upgrade\\v1_4_3\\add_action() in wp-content/plugins/custom-layouts/includes/upgrade/1.4.3.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Layouts\\Upgrade\\v1_4_1\\add_action() in wp-content/plugins/custom-layouts/includes/upgrade/1.4.1.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: block, product grid, post grid, recent posts, products...
custom-layouts/custom-layouts.php Passed 13 tests
"Custom Layouts - Post + Product grids made easy" version 1.4.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
139 characters long description:
Build a list or grid layout of any post type. Design the look of each item in the layout using our powerful drag and drop template editor.
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
No dangerous file extensions were detected8,546 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 1,651 | 2,404 | 6,840 |
SVG | 33 | 0 | 0 | 1,141 |
XML | 2 | 8 | 12 | 355 |
JSON | 2 | 2 | 0 | 203 |
JavaScript | 5 | 0 | 4 | 5 |
CSS | 3 | 3 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 147 | 43.11% |
▷ Public methods | 271 | 79.47% |
▷ Protected methods | 19 | 5.57% |
▷ Private methods | 51 | 14.96% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 6 | 60.00% |
▷ Class constants | 4 | 40.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin