84% hypercoder-codeblock

Code Review | HyperCoder CodeBlock

WordPress plugin HyperCoder CodeBlock scored84%from 54 tests.

About plugin

  • Plugin page: hypercoder-codeblock
  • Plugin version: 20190531...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: Jun 1, 2019
  • Latest release: Jun 1, 2019
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: hypercoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by HyperCoder CodeBlock
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.90 ▼3.45
Dashboard /wp-admin3.31 ▲0.0150.99 ▼1.21
Posts /wp-admin/edit.php3.36 ▲0.0148.26 ▼5.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.41 ▼24.30
Media Library /wp-admin/upload.php3.23 ▲0.0137.29 ▲0.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for HyperCoder CodeBlock
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.68 ▲0.291.86 ▲0.2345.14 ▲2.17
Dashboard /wp-admin2,198 ▲215.63 ▼0.0287.68 ▼3.9541.08 ▲2.30
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0239.87 ▲4.5335.39 ▲0.19
Add New Post /wp-admin/post-new.php1,526 ▼223.92 ▲0.68685.86 ▲26.3155.15 ▼1.44
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.01106.61 ▲2.1843.70 ▼0.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hypercoder-codeblock/hccb.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: code, highlight, copy, clipboard

hypercoder-codeblock/hccb.php 85% from 13 tests

The main PHP file in "HyperCoder CodeBlock" ver. 20190531... adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "20190531...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hypercoder-codeblock.php" instead of "hccb.php")

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
Success! There were no dangerous files found in this plugin80 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS18048
PHP181017
JavaScript13015

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.18
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin