84% thank-you-reader

Code Review | Thank you reader

WordPress plugin Thank you reader scored84%from 54 tests.

About plugin

  • Plugin page: thank-you-reader
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Jul 23, 2019
  • Latest release: Nov 27, 2020
  • Number of updates: 4
  • Update frequency: every 123.3 days
  • Top authors: vishalparit10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /617 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.05MB] [CPU: ▼2.21ms] Passed 4 tests

A check of server-side resources used by Thank you reader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.59 ▼4.71
Dashboard /wp-admin3.35 ▲0.0543.84 ▼4.04
Posts /wp-admin/edit.php3.46 ▲0.1146.65 ▼1.29
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.93 ▲5.29
Media Library /wp-admin/upload.php3.27 ▲0.0434.70 ▲1.20

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

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

Browser metrics Passed 4 tests

Thank you reader: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲9013.40 ▼0.957.83 ▲5.9441.75 ▼5.75
Dashboard /wp-admin2,202 ▲255.63 ▼0.0488.73 ▼2.3538.93 ▼1.56
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0235.57 ▼0.8033.99 ▼1.87
Add New Post /wp-admin/post-new.php1,530 ▲423.17 ▼0.07614.91 ▼17.1269.75 ▲12.20
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0694.54 ▼15.9842.10 ▼3.11

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

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/thank-you-reader/public/partials/thank-you-reader-public-display.php
    • > /wp-content/plugins/thank-you-reader/admin/partials/thank-you-reader-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: thank you, appreciation, thank you reader

thank-you-reader/thank-you-reader.php Passed 13 tests

The entry point to "Thank you reader" version 1.0.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
Simple plugin to appreciate the reader or to say thank you.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin176 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119536170
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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