84% blog-terminal

Code Review | Blog Terminal

WordPress plugin Blog Terminal scored84%from 54 tests.

About plugin

  • Plugin page: blog-terminal
  • Plugin version: 0.2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.8
  • WordPress version: 6.3.1
  • First release: Oct 17, 2017
  • Latest release: Aug 11, 2021
  • Number of updates: 21
  • Update frequency: every 66.4 days
  • Top authors: rsprta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Blog Terminal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.72 ▼2.56
Dashboard /wp-admin3.31 ▲0.0149.23 ▼3.79
Posts /wp-admin/edit.php3.37 ▲0.0150.68 ▲3.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.29 ▲0.57
Media Library /wp-admin/upload.php3.24 ▲0.0139.88 ▲4.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Blog Terminal
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.20 ▼0.391.78 ▼0.0640.87 ▼6.23
Dashboard /wp-admin2,192 ▲225.57 ▲0.0391.61 ▼12.7342.64 ▼1.84
Posts /wp-admin/edit.php2,097 ▼61.99 ▼0.0339.12 ▲3.2536.33 ▼4.37
Add New Post /wp-admin/post-new.php1,535 ▲917.99 ▼5.27620.20 ▼46.3471.87 ▲14.72
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0198.08 ▼9.8543.45 ▼4.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blog-terminal/terminal.php:32

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: xterm, cmd, linux, console, command...

blog-terminal/terminal.php 85% from 13 tests

The main PHP file in "Blog Terminal" ver. 0.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blog-terminal.php" instead of "terminal.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1106543
CSS10016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin