90% tcbd-auto-refresher

Code Review | TCBD Auto Refresher

WordPress plugin TCBD Auto Refresher scored90%from 54 tests.

About plugin

  • Plugin page: tcbd-auto-refresher
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Oct 11, 2016
  • Number of updates: 6
  • Update frequency: every 55.7 days
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,807 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.73ms] Passed 4 tests

Analyzing server-side resources used by TCBD Auto Refresher
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.60 ▲1.69
Dashboard /wp-admin3.34 ▲0.0453.01 ▲4.62
Posts /wp-admin/edit.php3.40 ▲0.0347.88 ▼3.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0385.55 ▼20.26
Media Library /wp-admin/upload.php3.27 ▲0.0335.96 ▲3.63
TCBD Auto Refresher /wp-admin/plugins.php?page=tcbd_auto_refresh_settings3.2331.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for TCBD Auto Refresher
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.62 ▲0.071.81 ▼1.6144.54 ▲3.47
Dashboard /wp-admin2,202 ▲255.63 ▲0.0497.98 ▲7.7641.57 ▲0.53
Posts /wp-admin/edit.php2,101 ▼22.15 ▲0.1333.83 ▼2.7640.10 ▲3.66
Add New Post /wp-admin/post-new.php1,529 ▲123.85 ▲0.69702.04 ▼3.9067.72 ▲18.71
Media Library /wp-admin/upload.php1,407 ▲134.17 ▼0.0798.54 ▼11.8442.81 ▲0.50
TCBD Auto Refresher /wp-admin/plugins.php?page=tcbd_auto_refresh_settings8932.0526.1027.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: page auto refresh, refresh, refresher, meta refresh, tcbd

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

"TCBD Auto Refresher" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tcbd-auto-refresher.php" instead of "plugin-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin155 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45131155

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin