84% sidepop

Code Review | Customizable social proof notifications for Wordpress - Sidepop

WordPress plugin Customizable social proof notifications for Wordpress - Sidepop scored84%from 54 tests.

About plugin

  • Plugin page: sidepop
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 2, 2019
  • Latest release: Oct 3, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: sidepop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.70MB] [CPU: ▼24.64ms] Passed 4 tests

This is a short check of server-side resources used by Customizable social proof notifications for Wordpress - Sidepop
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.92 ▲4.77
Dashboard /wp-admin3.31 ▼0.0350.01 ▼21.59
Posts /wp-admin/edit.php3.36 ▲0.0150.01 ▼3.64
Add New Post /wp-admin/post-new.php3.10 ▼2.7937.96 ▼71.03
Media Library /wp-admin/upload.php3.24 ▲0.0136.91 ▼2.28

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Customizable social proof notifications for Wordpress - Sidepop
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.31 ▼0.071.83 ▼0.1542.95 ▲0.05
Dashboard /wp-admin2,207 ▲305.55 ▼0.1783.95 ▼4.0640.17 ▼2.97
Posts /wp-admin/edit.php2,112 ▲122.00 ▼0.0334.62 ▼7.1433.58 ▼5.19
Add New Post /wp-admin/post-new.php6,248 ▲4,71719.12 ▼4.26860.91 ▲159.9553.20 ▼18.35
Media Library /wp-admin/upload.php1,412 ▲124.27 ▲0.0499.03 ▼4.7943.94 ▼1.91

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidepop/sidepop.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sidepop/views/welcome.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sidepop/views/settings.php:4

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

sidepop/sidepop.php Passed 13 tests

The main file in "Customizable social proof notifications for Wordpress - Sidepop" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Integrate Wordpress with Sidepop easily in one simple step

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin392 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP413614392

PHP code Passed 2 tests

Analyzing 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.43
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%
Functions10
▷ Named functions10100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/sidepop-logo.png36.86KB12.96KB▼ 64.85%