89% tcbd-alert

Code Review | TCBD Alert

WordPress plugin TCBD Alert scored 89% from 54 tests.

About plugin

  • Plugin page: tcbd-alert
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Aug 8, 2015
  • Latest release: Mar 31, 2016
  • Number of updates: 3
  • Update frequency: every 78.7 days
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,079 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by TCBD Alert
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.04 ▲0.30
Dashboard /wp-admin3.32 ▲0.0145.52 ▼4.96
Posts /wp-admin/edit.php3.37 ▲0.0142.79 ▼2.41
Add New Post /wp-admin/post-new.php5.90 ▲0.01111.00 ▲14.97
Media Library /wp-admin/upload.php3.24 ▲0.0135.05 ▲1.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by TCBD Alert
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.54 ▼0.754.90 ▲2.9841.53 ▼8.78
Dashboard /wp-admin2,206 ▲214.84 ▼0.97103.54 ▲1.2039.28 ▼4.62
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0836.28 ▼5.8735.98 ▲2.10
Add New Post /wp-admin/post-new.php1,531 ▼223.36 ▲0.24634.11 ▼52.9858.85 ▲5.34
Media Library /wp-admin/upload.php1,388 ▼04.19 ▲0.0195.61 ▼14.4741.63 ▼6.39

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please describe screenshot #3 in tcbd-alert/assets to your readme.txt
  • Tags: Please delete some tags, you are using 29 tag instead of maximum 10
The official readme.txt is a good inspiration

tcbd-alert/plugin-hook.php 92% from 13 tests

The principal PHP file in "TCBD Alert" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tcbd-alert.php" instead of "plugin-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected238 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS110110
JavaScript2291688
PHP1163140

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.22
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/icon.png3.09KB3.23KB0.00%