84% tk-reminders

Code Review | TK Reminders

WordPress plugin TK Reminders scored84%from 54 tests.

About plugin

  • Plugin page: tk-reminders
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: Apr 10, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mauromorales (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /411 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by TK Reminders
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.08 ▼8.50
Dashboard /wp-admin3.31 ▼0.0347.26 ▼25.61
Posts /wp-admin/edit.php3.36 ▲0.0046.36 ▼8.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.48 ▼15.44
Media Library /wp-admin/upload.php3.23 ▲0.0037.26 ▲0.76

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for TK Reminders
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.24 ▼1.321.68 ▼0.0638.87 ▼4.87
Dashboard /wp-admin2,205 ▲204.88 ▼0.01119.17 ▲14.5359.12 ▲18.87
Posts /wp-admin/edit.php2,091 ▲22.05 ▲0.0637.81 ▼4.7633.05 ▼2.74
Add New Post /wp-admin/post-new.php1,539 ▲1918.34 ▼4.80604.29 ▼93.8556.66 ▼21.73
Media Library /wp-admin/upload.php1,390 ▲24.15 ▼0.2798.81 ▼10.1041.25 ▼3.47

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tk-reminders/tk-reminders.php:17

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: reminders, writting

tk-reminders/tk-reminders.php Passed 13 tests

This is the main PHP file of "TK Reminders" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
67 characters long description:
Leave reminders to yourself to comeback later to before publishing.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected43 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14018
PHP15913
CSS11012

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.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
No PNG files were detected