84% foxdell-folio-bec-disable-core-blocks

Code Review | Foxdell Folio BEC Disable Core Blocks

WordPress plugin Foxdell Folio BEC Disable Core Blocks scored84%from 54 tests.

About plugin

  • Plugin page: foxdell-folio-bec...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Nov 27, 2019
  • Latest release: Nov 27, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: chris.odell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /520 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.04ms] Passed 4 tests

A check of server-side resources used by Foxdell Folio BEC Disable Core Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.65 ▲1.55
Dashboard /wp-admin3.35 ▲0.0447.50 ▼0.20
Posts /wp-admin/edit.php3.40 ▲0.0449.93 ▼2.80
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.77 ▼8.48
Media Library /wp-admin/upload.php3.27 ▲0.0434.00 ▼0.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Foxdell Folio BEC Disable Core Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.70 ▼0.521.76 ▲0.0342.59 ▲1.20
Dashboard /wp-admin2,203 ▲155.81 ▼0.07100.53 ▼20.7739.89 ▼3.40
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0238.05 ▼4.2434.25 ▼1.97
Add New Post /wp-admin/post-new.php1,535 ▲723.26 ▲4.94664.22 ▲35.9050.97 ▼6.55
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0998.89 ▼4.7543.88 ▼0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxdell-folio-bec-disable-core-blocks/disable-core-blocks.php:36

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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: gutenberg, customize, block-editor

foxdell-folio-bec-disable-core-blocks/disable-core-blocks.php 85% from 13 tests

"Foxdell Folio BEC Disable Core Blocks" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("foxdell-folio-bec-disable-core-blocks.php" instead of "disable-core-blocks.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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin453 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23353242
PHP278149196
CSS261115

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/datatables/DataTables-1.10.20/images/sort_asc.png0.16KB0.25KB0.00%
vendor/datatables/DataTables-1.10.20/images/sort_desc_disabled.png0.14KB0.25KB0.00%
vendor/datatables/DataTables-1.10.20/images/sort_desc.png0.15KB0.25KB0.00%
vendor/datatables/DataTables-1.10.20/images/sort_both.png0.20KB0.29KB0.00%
vendor/datatables/DataTables-1.10.20/images/sort_asc_disabled.png0.14KB0.25KB0.00%