89% tcbd-preloader

Code Review | TCBD Preloader

WordPress plugin TCBD Preloader scored 89% from 54 tests.

About plugin

  • Plugin page: tcbd-preloader
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Jul 28, 2015
  • Number of updates: 13
  • Update frequency: every 0.5 days
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by TCBD Preloader
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.35 ▼1.46
Dashboard /wp-admin3.31 ▲0.0143.05 ▼4.69
Posts /wp-admin/edit.php3.36 ▲0.0147.23 ▲1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.85 ▼3.86
Media Library /wp-admin/upload.php3.24 ▲0.0136.44 ▲0.72
TCBD Preloader /wp-admin/plugins.php?page=tcbd_preloader_settings3.2026.91

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for TCBD Preloader
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲19813.72 ▼0.876.34 ▲4.5841.22 ▲0.45
Dashboard /wp-admin2,210 ▲194.84 ▼0.21108.59 ▲7.6944.50 ▲4.82
Posts /wp-admin/edit.php2,096 ▲101.98 ▼0.0438.82 ▲4.0135.24 ▲0.97
Add New Post /wp-admin/post-new.php1,522 ▼1122.95 ▼0.11591.10 ▼52.4353.10 ▼1.35
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0497.31 ▼12.9340.13 ▼9.01
TCBD Preloader /wp-admin/plugins.php?page=tcbd_preloader_settings8102.0323.5725.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 28 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The principal PHP file in "TCBD Preloader" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tcbd-preloader.php" instead of "plugin-hook.php")

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
Success! There were no dangerous files found in this plugin209 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24731122
CSS11282
JavaScript1005

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin