83% code-blocks-online-code-compiler

Code Review | Code Blocks- online code compiler

WordPress plugin Code Blocks- online code compiler scored83%from 54 tests.

About plugin

  • Plugin page: code-blocks-onlin...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: May 26, 2022
  • Latest release: May 26, 2022
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: kardi420 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,332 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Code Blocks- online code compiler
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.36 ▼3.59
Dashboard /wp-admin3.34 ▲0.0449.71 ▼5.03
Posts /wp-admin/edit.php3.39 ▲0.0449.56 ▼1.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.50 ▼15.26
Media Library /wp-admin/upload.php3.27 ▲0.0436.45 ▲3.87

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Code Blocks- online code compiler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9513.56 ▼0.791.90 ▼0.1141.90 ▼4.34
Dashboard /wp-admin2,237 ▲374.89 ▼0.99108.20 ▼3.3939.72 ▼10.39
Posts /wp-admin/edit.php2,113 ▲132.02 ▼0.0839.31 ▲0.6135.95 ▼0.08
Add New Post /wp-admin/post-new.php1,563 ▲2323.41 ▲5.31680.14 ▲41.4566.24 ▲10.38
Media Library /wp-admin/upload.php1,419 ▲194.24 ▼0.0096.70 ▼5.2942.29 ▼0.86

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 add_action() in wp-content/plugins/code-blocks-online-code-compiler/code-api.php:40

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (settings), #2 (view)
The official readme.txt might help

code-blocks-online-code-compiler/index.php 77% from 13 tests

The main PHP file in "Code Blocks- online code compiler" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("code-blocks-online-code-compiler.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,039 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript719288765
PHP36470163
CSS3185111

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin