90% applause

Code Review | Applause/Like/Upvote Button

WordPress plugin Applause/Like/Upvote Button scored90%from 54 tests.

About plugin

  • Plugin page: applause
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 12, 2021
  • Latest release: Aug 19, 2023
  • Number of updates: 7
  • Update frequency: every 96.7 days
  • Top authors: bhadaway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /829 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.01MB] [CPU: ▼7.25ms] Passed 4 tests

A check of server-side resources used by Applause/Like/Upvote Button
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.80 ▲3.16
Dashboard /wp-admin3.32 ▲0.0150.10 ▼1.28
Posts /wp-admin/edit.php3.37 ▲0.0146.31 ▼12.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.62 ▼8.32
Media Library /wp-admin/upload.php3.24 ▲0.0136.74 ▼6.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Applause/Like/Upvote Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.74 ▼0.5010.45 ▲7.5344.90 ▼0.44
Dashboard /wp-admin2,206 ▲214.86 ▼1.11120.89 ▲14.5542.89 ▲0.82
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0337.87 ▲0.9140.67 ▲4.82
Add New Post /wp-admin/post-new.php1,533 ▲523.16 ▲0.36645.37 ▼43.0953.41 ▼20.51
Media Library /wp-admin/upload.php1,385 ▼04.20 ▼0.06104.22 ▼22.0443.59 ▼9.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: like, button, vote, applause, thumbs up...

applause/applause.php Passed 13 tests

Analyzing the main PHP file in "Applause/Like/Upvote Button" version 0.1
51 characters long description:
Add an applause/like/upvote button to your content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin36 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP141134
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin