84% code-editor-blocks

Code Review | Code Editor Blocks

WordPress plugin Code Editor Blocks scored84%from 54 tests.

About plugin

  • Plugin page: code-editor-blocks
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: Jan 11, 2019
  • Latest release: Jan 11, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,461 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.34ms] Passed 4 tests

Analyzing server-side resources used by Code Editor Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.02 ▼1.02
Dashboard /wp-admin3.32 ▲0.0146.84 ▼0.99
Posts /wp-admin/edit.php3.37 ▲0.0147.88 ▲0.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.35 ▼7.83
Media Library /wp-admin/upload.php3.24 ▲0.0134.40 ▲1.36

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Code Editor Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.70 ▼1.051.91 ▲0.0243.28 ▼7.75
Dashboard /wp-admin2,209 ▲185.85 ▲0.94104.71 ▼3.0440.67 ▼0.50
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0140.04 ▲1.9637.48 ▲4.80
Add New Post /wp-admin/post-new.php6,195 ▲4,79820.80 ▲3.04906.47 ▲290.5436.38 ▼17.99
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0398.21 ▼5.3542.09 ▼3.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Code_Editor_Blocks\\add_action() in wp-content/plugins/code-editor-blocks/src/init.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: blocks, posts

code-editor-blocks/code-editor-blocks.php 92% from 13 tests

The entry point to "Code Editor Blocks" version 0.1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected356 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript64743304
PHP293852

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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
Namespaces1
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 files were detected