79% caxton

Code Review | Caxton - Create Pro page layouts in Gutenberg

WordPress plugin Caxton - Create Pro page layouts in Gutenberg scored79%from 54 tests.

About plugin

  • Plugin page: caxton
  • Plugin version: 1.30.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 22, 2018
  • Latest release: Jul 19, 2023
  • Number of updates: 61
  • Update frequency: every 32.9 days
  • Top authors: shramee (96.72%)munirkamal (4.92%)

Code review

54 tests

User reviews

18 reviews

Install metrics

3,000+ active /57,294 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1842.03 ▼3.96
Dashboard /wp-admin3.48 ▲0.1346.60 ▼17.40
Posts /wp-admin/edit.php3.60 ▲0.2445.94 ▼0.34
Add New Post /wp-admin/post-new.php6.06 ▲0.1787.44 ▼7.43
Media Library /wp-admin/upload.php3.41 ▲0.1735.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲2614.28 ▼0.072.07 ▲0.3041.33 ▼4.12
Dashboard /wp-admin2,211 ▲315.52 ▼0.1281.39 ▼18.0036.85 ▼6.16
Posts /wp-admin/edit.php2,116 ▲161.97 ▼0.0633.25 ▼1.6135.52 ▼1.81
Add New Post /wp-admin/post-new.php6,423 ▲4,89730.00 ▲6.76891.14 ▲227.6639.53 ▼2.50
Media Library /wp-admin/upload.php1,410 ▲134.18 ▼0.03100.41 ▼15.6940.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

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:
LanguageFilesBlank linesComment linesLines of code
Sass712,75914210,479
JavaScript18425924,923
PHP71081181,136
JSON300352
SVG10019
CSS7059

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 code0.20
Average class complexity11.33
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods515.62%
▷ Public methods2371.88%
▷ Protected methods13.12%
▷ Private methods825.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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