84% terminal-block

Code Review | Terminal Block

WordPress plugin Terminal Block scored 84% from 54 tests.

About plugin

  • Plugin page: terminal-block
  • Plugin version: 0.1.3.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2022
  • Latest release: Dec 26, 2022
  • Number of updates: 10
  • Update frequency: every 15.2 days
  • Top authors: codesue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,200 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
This plugin's installer ran successfully

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

A check of server-side resources used by Terminal Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.40 ▲7.56
Dashboard /wp-admin3.32 ▲0.0251.61 ▲6.04
Posts /wp-admin/edit.php3.37 ▲0.0142.05 ▼4.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.61 ▲0.47
Media Library /wp-admin/upload.php3.24 ▲0.0138.80 ▲0.54

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Terminal Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.26 ▼0.941.82 ▲0.1040.99 ▲0.32
Dashboard /wp-admin2,206 ▲145.90 ▲1.00109.02 ▼2.8845.09 ▲4.74
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0433.25 ▼2.3134.80 ▲1.30
Add New Post /wp-admin/post-new.php6,587 ▲5,06729.32 ▲5.94993.91 ▲224.7769.89 ▲10.39
Media Library /wp-admin/upload.php1,385 ▼64.19 ▼0.05103.70 ▼4.8246.26 ▼2.02

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 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/terminal-block/terminal-block.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
6 plugin tags: code, block, blocks, terminal, documentation...

terminal-block/terminal-block.php Passed 13 tests

"Terminal Block" version 0.1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Display rich text in a terminal window.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected29,203 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON40028,554
JavaScript83538526
Sass213196
PHP221416
Markdown1509
CSS2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin