94% foxdell-folio-bec-vs-light-theme

Code Review | VS Light Theme for the Foxdell Folio Block Editor Customiser

WordPress plugin VS Light Theme for the Foxdell Folio Block Editor Customiser scored 94% from 54 tests.

About plugin

  • Plugin page: foxdell-folio-bec...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2.3
  • WordPress version: 5.8.1
  • First release: Nov 25, 2019
  • Latest release: Dec 16, 2019
  • Number of updates: 7
  • Update frequency: every 3.1 days
  • Top authors: chris.odell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 310 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼142.12ms] Passed 4 tests

A check of server-side resources used by VS Light Theme for the Foxdell Folio Block Editor Customiser
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.57 ▲21.40
Dashboard /wp-admin3.06 ▲0.0154.06 ▲7.45
Posts /wp-admin/edit.php3.11 ▲0.0148.40 ▼10.10
Add New Post /wp-admin/post-new.php5.42 ▼0.0199.55 ▼563.97
Media Library /wp-admin/upload.php3.01 ▲0.0035.40 ▼1.84

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for VS Light Theme for the Foxdell Folio Block Editor Customiser
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲13315.81 ▲0.249.28 ▼1.9249.48 ▼4.93
Dashboard /wp-admin2,970 ▲365.91 ▼0.06153.97 ▲0.95123.27 ▼13.24
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0068.87 ▼6.12101.23 ▲4.43
Add New Post /wp-admin/post-new.php1,683 ▼018.66 ▼0.13411.86 ▼4.55116.31 ▼2.93
Media Library /wp-admin/upload.php1,810 ▲35.06 ▲0.01159.46 ▼1.04132.05 ▲2.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxdell-folio-bec-vs-light-theme/fofo-bec-vs-light-theme.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: gutenberg, customize, block-editor

foxdell-folio-bec-vs-light-theme/fofo-bec-vs-light-theme.php 85% from 13 tests

Analyzing the main PHP file in "VS Light Theme for the Foxdell Folio Block Editor Customiser" version 1.1.0
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("foxdell-folio-bec-vs-light-theme.php" instead of "fofo-bec-vs-light-theme.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS113058
PHP1222854

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin