84% wp-applaud

Code Review | WP Applaud

WordPress plugin WP Applaud scored84%from 54 tests.

About plugin

  • Plugin page: wp-applaud
  • Plugin version: 1.5
  • PHP compatiblity: 5.4.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2019
  • Latest release: Sep 2, 2019
  • Number of updates: 8
  • Update frequency: every 25.2 days
  • Top authors: hitenchothani3493 (75%)wpapplaud (37.5%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /5,986 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.09ms] Passed 4 tests

A check of server-side resources used by WP Applaud
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0522.80 ▼20.34
Dashboard /wp-admin3.35 ▲0.0557.56 ▲7.09
Posts /wp-admin/edit.php3.40 ▲0.0564.22 ▲13.21
Add New Post /wp-admin/post-new.php5.94 ▲0.05111.40 ▲2.17
Media Library /wp-admin/upload.php3.27 ▲0.0445.14 ▲6.74

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_wp_applaud_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Applaud
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲19714.09 ▼0.225.42 ▲3.5338.81 ▼9.99
Dashboard /wp-admin2,291 ▲884.90 ▼0.98100.15 ▼7.4885.22 ▲47.96
Posts /wp-admin/edit.php2,119 ▲191.98 ▼0.0140.54 ▲0.7442.63 ▲5.87
Add New Post /wp-admin/post-new.php6,402 ▲4,86127.72 ▲4.551,002.20 ▲306.9485.43 ▼8.96
Media Library /wp-admin/upload.php1,412 ▲154.10 ▼0.12103.46 ▼5.3076.97 ▲27.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_wp_applaud_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-applaud/functions/widgets.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-applaud/functions/settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: clap, medium, applaud, feedback

wp-applaud/wp-applaud.php Passed 13 tests

Analyzing the main PHP file in "WP Applaud" version 1.5
51 characters long description:
Add "applaud" functionality to your posts and pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,356 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3353229664
PHP614944551
SVG30374
CSS3153067

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.33
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/favicon.png0.51KB0.49KB▼ 3.08%
assets/images/heart.png1.06KB0.89KB▼ 16.06%
assets/images/heart_active.png1.36KB1.09KB▼ 19.89%
assets/images/hearts.png2.24KB1.75KB▼ 21.71%
assets/images/wp-applaud.png0.40KB0.30KB▼ 24.82%