84% foxdell-folio-bec-theme-rain-forest

Code Review | Rain Forest Theme for the Foxdell Folio Block Editor Customiser

WordPress plugin Rain Forest Theme for the Foxdell Folio Block Editor Customiser scored84%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: 6.3.1
  • First release: Dec 9, 2019
  • Latest release: Dec 16, 2019
  • Number of updates: 8
  • Update frequency: every 1.1 days
  • Top authors: chris.odell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Rain Forest Theme for the Foxdell Folio Block Editor Customiser
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.96 ▼7.50
Dashboard /wp-admin3.33 ▲0.0246.89 ▼1.84
Posts /wp-admin/edit.php3.38 ▲0.0247.19 ▼4.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.73 ▼5.31
Media Library /wp-admin/upload.php3.25 ▲0.0136.13 ▲3.53

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Rain Forest Theme for the Foxdell Folio Block Editor Customiser
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.71 ▼0.651.78 ▼0.3739.19 ▼7.20
Dashboard /wp-admin2,209 ▲216.06 ▲0.25101.04 ▼13.1437.69 ▼9.69
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0639.00 ▲0.9236.28 ▲3.60
Add New Post /wp-admin/post-new.php1,542 ▲2818.13 ▲0.40613.26 ▲18.2060.37 ▲9.13
Media Library /wp-admin/upload.php1,385 ▼04.16 ▼0.0999.95 ▼2.5240.90 ▼6.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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-theme-rain-forest/fofo-bec-theme-rain-forest.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: block-editor, customize, gutenberg

foxdell-folio-bec-theme-rain-forest/fofo-bec-theme-rain-forest.php 85% from 13 tests

The entry point to "Rain Forest Theme for the Foxdell Folio Block Editor Customiser" version 1.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("foxdell-folio-bec-theme-rain-forest.php" instead of "fofo-bec-theme-rain-forest.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin236 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1340156
PHP1222854
Markdown119026

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
No PNG images were found in this plugin