90% peerpal-widget

Code Review | PeerPal Widget

WordPress plugin PeerPal Widget scored90%from 54 tests.

About plugin

  • Plugin page: peerpal-widget
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 24, 2020
  • Latest release: Oct 26, 2022
  • Number of updates: 30
  • Update frequency: every 27.5 days
  • Top authors: ppdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /608 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.00MB] [CPU: ▼6.62ms] Passed 4 tests

This is a short check of server-side resources used by PeerPal Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.34 ▼3.02
Dashboard /wp-admin3.31 ▲0.0147.51 ▲0.95
Posts /wp-admin/edit.php3.36 ▲0.0049.86 ▼0.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.47 ▼23.97
Media Library /wp-admin/upload.php3.23 ▲0.0038.03 ▲1.74

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for PeerPal Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.82 ▲0.431.91 ▼0.0837.72 ▼7.94
Dashboard /wp-admin2,200 ▲155.84 ▲0.98102.93 ▼7.7239.96 ▼1.66
Posts /wp-admin/edit.php2,092 ▲62.03 ▲0.0340.41 ▲4.0634.77 ▼0.15
Add New Post /wp-admin/post-new.php1,538 ▲1921.03 ▼2.09631.25 ▼63.1348.09 ▼7.29
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0592.08 ▼15.3340.51 ▼0.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The shortcode should setup everything needed) image not found
The official readme.txt might help

peerpal-widget/peerpal-widget.php Passed 13 tests

Analyzing the main PHP file in "PeerPal Widget" version 1.1.0
33 characters long description:
[peerpal school='Demo'] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin36 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP392230
Markdown1106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin