100% guillotheme

Code Review | Guillotheme

WordPress plugin Guillotheme scored 100% from 54 tests.

About plugin

  • Plugin page: guillotheme
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Apr 14, 2020
  • Latest release: Sep 12, 2021
  • Number of updates: 5
  • Update frequency: every 104.6 days
  • Top authors: davidmatthew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 357 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼136.27ms] Passed 4 tests

Analyzing server-side resources used by Guillotheme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.59 ▼0.1316.21 ▼2.48
Dashboard /wp-admin3.07 ▲0.0245.87 ▲3.43
Posts /wp-admin/edit.php3.13 ▲0.0241.52 ▲1.00
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.56 ▼539.09
Media Library /wp-admin/upload.php3.02 ▲0.0131.84 ▼4.51
Guillotheme /wp-admin/options-general.php?page=guillotheme2.9826.54

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Guillotheme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,879 ▲1,28534.22 ▲18.42250.07 ▲241.6153.64 ▲7.59
Dashboard /wp-admin2,980 ▲495.47 ▼0.50121.84 ▼20.59108.98 ▲3.39
Posts /wp-admin/edit.php2,746 ▲72.82 ▲0.1265.31 ▲3.5990.65 ▲1.70
Add New Post /wp-admin/post-new.php3,707 ▲2,20515.56 ▼3.22396.65 ▲31.71114.82 ▲11.78
Media Library /wp-admin/upload.php1,814 ▲44.78 ▼0.24109.07 ▼46.18122.98 ▲5.06
Guillotheme /wp-admin/options-general.php?page=guillotheme1,0702.2152.0168.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: headless, translation-ready, decoupled

guillotheme/guillotheme.php Passed 13 tests

"Guillotheme" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Chops the head right off your WordPress theme, disabling the front-end.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin191 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP463108164
JavaScript151227

PHP code Passed 2 tests

An overview 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 complexity3.33
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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