72% sender-content-terminal

Code Review | Sender Content Terminal

WordPress plugin Sender Content Terminal scored72%from 54 tests.

About plugin

  • Plugin page: sender-content-te...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2020
  • Latest release: Jun 9, 2021
  • Number of updates: 9
  • Update frequency: every 40.6 days
  • Top authors: senderlaw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,245 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.73ms] Passed 4 tests

A check of server-side resources used by Sender Content Terminal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.48 ▼3.89
Dashboard /wp-admin3.40 ▲0.1052.92 ▲5.37
Posts /wp-admin/edit.php3.51 ▲0.1647.40 ▲1.00
Add New Post /wp-admin/post-new.php6.00 ▲0.1180.83 ▼23.18
Media Library /wp-admin/upload.php3.32 ▲0.1034.62 ▼0.83
Sub Level Menu /wp-admin/admin.php?page=myplugin/myplugin-admin-sub-page.php3.2726.59

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Sender Content Terminal
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7313.94 ▼0.461.93 ▲0.1740.79 ▼5.93
Dashboard /wp-admin2,215 ▲355.66 ▲0.08101.39 ▲4.7947.79 ▲0.33
Posts /wp-admin/edit.php2,120 ▲172.01 ▲0.0638.56 ▼3.0836.02 ▼4.79
Add New Post /wp-admin/post-new.php1,554 ▲1917.93 ▼0.15605.83 ▼30.55103.96 ▲28.31
Media Library /wp-admin/upload.php1,423 ▲234.19 ▲0.0096.97 ▼0.2541.99 ▲0.04
Sub Level Menu /wp-admin/admin.php?page=myplugin/myplugin-admin-sub-page.php7762.0229.7426.93

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_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=myplugin/myplugin-admin-sub-page.php
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'myplguin_admin_sub_page' not found or invalid function name

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sender-content-terminal/admin/partials/plugin-sender-content-terminal-display.php
    • > /wp-content/plugins/sender-content-terminal/public/partials/sender-content-terminal-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/sender-content-terminal/admin/templates/index.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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid URI found ("Sender.Law")
The official readme.txt might help

sender-content-terminal/sender-content-terminal.php 92% from 13 tests

Analyzing the main PHP file in "Sender Content Terminal" version 1.0.1
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin530 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13174539490
JavaScript2105439
CSS3081

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.57
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3183.78%
▷ Protected methods00.00%
▷ Private methods616.22%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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