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.24MB] [CPU: ▼0.21ms] Passed 4 tests
This is a short check of server-side resources used by Post Layouts for Gutenberg
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 42.05 ▲0.08 |
Dashboard /wp-admin | 3.54 ▲0.24 | 48.51 ▼2.02 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 49.61 ▲1.53 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 95.88 ▼0.45 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 41.82 ▲6.79 |
Server storage [IO: ▲3.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
post_layouts_gutenberg_do_activation_redirect |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Post Layouts for Gutenberg: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 14.46 ▲0.16 | 1.59 ▼0.90 | 45.97 ▼1.57 |
Dashboard /wp-admin | 2,200 ▲12 | 5.89 ▼0.12 | 97.08 ▼19.53 | 41.89 ▼4.46 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.03 | 40.83 ▼0.60 | 35.47 ▲1.06 |
Add New Post /wp-admin/post-new.php | 6,361 ▲4,847 | 29.70 ▲6.14 | 974.75 ▲275.05 | 38.21 ▼13.67 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.05 | 105.42 ▼9.72 | 41.95 ▼8.45 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- post_layouts_gutenberg_do_activation_redirect
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require(): Failed opening required 'PL_DIRsrc/pl-helper/class-pl-helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-layouts/src/pl-helper/class-pl-loader.php on line 50
- > PHP Warning
require(PL_DIRsrc/pl-helper/class-pl-config.php): failed to open stream: No such file or directory in wp-content/plugins/post-layouts/src/pl-helper/class-pl-helper.php on line 70
- > PHP Warning
require(PL_DIRsrc/pl-helper/class-pl-helper.php): failed to open stream: No such file or directory in wp-content/plugins/post-layouts/src/pl-helper/class-pl-loader.php on line 50
- > PHP Warning
Use of undefined constant PL_DIR - assumed 'PL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-layouts/src/pl-helper/class-pl-loader.php on line 50
- > PHP Warning
Use of undefined constant PL_DIR - assumed 'PL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-layouts/src/pl-helper/class-pl-helper.php on line 70
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-layouts/src/blocks/index.php:1120
- > PHP Fatal error
require(): Failed opening required 'PL_DIRsrc/pl-helper/class-pl-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/post-layouts/src/pl-helper/class-pl-helper.php on line 70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: post templates, grid layout, post blocks, list layout, gutenberg block...
post-layouts/post-layouts.php Passed 13 tests
The main file in "Post Layouts for Gutenberg" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
A beautiful post layouts block to showcase your posts in grid and list layout with multiple templates availability.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected20,613 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,204 |
CSS | 14 | 1,850 | 50 | 4,360 |
SVG | 3 | 0 | 0 | 3,927 |
Sass | 4 | 36 | 52 | 2,150 |
JavaScript | 12 | 173 | 52 | 1,581 |
PHP | 10 | 356 | 508 | 1,391 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 3 | 42.86% |
Methods | 25 | |
▷ Static methods | 12 | 48.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 31 | |
▷ Named functions | 30 | 96.77% |
▷ Anonymous functions | 1 | 3.23% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin