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: ▲0.16MB] [CPU: ▼7.36ms] Passed 4 tests
Server-side resources used by Caxton - Create Pro page layouts in Gutenberg
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 42.03 ▼3.96 |
Dashboard /wp-admin | 3.48 ▲0.13 | 46.60 ▼17.40 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 45.94 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 87.44 ▼7.43 |
Media Library /wp-admin/upload.php | 3.41 ▲0.17 | 35.68 ▼0.66 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Caxton - Create Pro page layouts in Gutenberg
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲26 | 14.28 ▼0.07 | 2.07 ▲0.30 | 41.33 ▼4.12 |
Dashboard /wp-admin | 2,211 ▲31 | 5.52 ▼0.12 | 81.39 ▼18.00 | 36.85 ▼6.16 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.97 ▼0.06 | 33.25 ▼1.61 | 35.52 ▼1.81 |
Add New Post /wp-admin/post-new.php | 6,423 ▲4,897 | 30.00 ▲6.76 | 891.14 ▲227.66 | 39.53 ▼2.50 |
Media Library /wp-admin/upload.php | 1,410 ▲13 | 4.18 ▼0.03 | 100.41 ▼15.69 | 40.99 ▼7.56 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- 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 | 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/caxton/inc/tpl.caxton-admin-page.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/caxton/inc/tpl.caxton-admin-disable-blocks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caxton/caxton.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: gutenberg blocks, blocks, gutenberg, posts grid
caxton/caxton.php Passed 13 tests
This is the main PHP file of "Caxton - Create Pro page layouts in Gutenberg" version 1.30.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
29 characters long description:
Caxton - blocks for Gutenberg
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
Everything looks great! No dangerous files found in this plugin16,918 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 71 | 2,759 | 142 | 10,479 |
JavaScript | 18 | 425 | 92 | 4,923 |
PHP | 7 | 108 | 118 | 1,136 |
JSON | 3 | 0 | 0 | 352 |
SVG | 1 | 0 | 0 | 19 |
CSS | 7 | 0 | 5 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 5 | 15.62% |
▷ Public methods | 23 | 71.88% |
▷ Protected methods | 1 | 3.12% |
▷ Private methods | 8 | 25.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin