89% provesource

Code Review | ProveSource Social Proof

WordPress plugin ProveSource Social Proof scored 89% from 54 tests.

About plugin

  • Plugin page: provesource
  • Plugin version: 2.3.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 50
  • Update frequency: every 37.6 days
  • Top authors: provesource (100%)

Code review

54 tests

User reviews

68 reviews

Install metrics

3,000+ active / 44,594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.31ms] Passed 4 tests

This is a short check of server-side resources used by ProveSource Social Proof
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.00 ▼5.20
Dashboard /wp-admin3.39 ▲0.0952.63 ▲2.26
Posts /wp-admin/edit.php3.50 ▲0.1549.36 ▲4.72
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.82 ▲3.09
Media Library /wp-admin/upload.php3.31 ▲0.0835.51 ▲1.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ProveSource Social Proof
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.78 ▼0.826.62 ▲4.2937.96 ▼5.47
Dashboard /wp-admin2,239 ▲515.84 ▲0.97102.82 ▼13.7240.78 ▼5.59
Posts /wp-admin/edit.php2,125 ▲362.06 ▲0.0637.70 ▲1.3943.24 ▲4.46
Add New Post /wp-admin/post-new.php1,545 ▲1223.38 ▲0.12727.42 ▲78.6759.74 ▲5.33
Media Library /wp-admin/upload.php1,427 ▲424.19 ▼0.0496.70 ▼5.4541.42 ▲0.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

provesource/provesrc.php 77% from 13 tests

The main file in "ProveSource Social Proof" v. 2.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("provesource.php" instead of "provesrc.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("3.1.0" instead of "3.0")

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
No dangerous file extensions were detected650 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16130489
CSS2243160
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 1.47MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-1200.png408.40KB173.27KB▼ 57.57%
assets/icon-256x256.png60.10KB18.61KB▼ 69.03%
assets/screenshot-1.png309.32KB112.87KB▼ 63.51%
assets/icon-128x128.png21.62KB7.76KB▼ 64.09%
assets/banner-1544x500.png173.41KB88.65KB▼ 48.88%