84% reviewstap

Code Review | ReviewsTap

WordPress plugin ReviewsTap scored84%from 54 tests.

About plugin

  • Plugin page: reviewstap
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2020
  • Latest release: Mar 23, 2023
  • Number of updates: 26
  • Update frequency: every 43.9 days
  • Top authors: awcode (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.92ms] Passed 4 tests

Server-side resources used by ReviewsTap
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.68 ▼5.00
Dashboard /wp-admin3.37 ▲0.0344.80 ▼14.20
Posts /wp-admin/edit.php3.48 ▲0.1349.08 ▼4.89
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.54 ▼11.59
Media Library /wp-admin/upload.php3.29 ▲0.0634.67 ▲2.32
Reviews Tap /wp-admin/options-general.php?page=reviewstap3.2629.70

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_reviewstap_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ReviewsTap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.34 ▼1.351.80 ▼0.1041.38 ▼4.12
Dashboard /wp-admin2,210 ▲195.82 ▲0.93102.32 ▼5.3240.60 ▼5.67
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0237.27 ▼0.8334.23 ▼6.27
Add New Post /wp-admin/post-new.php1,535 ▲1622.89 ▼0.47630.06 ▼51.1355.74 ▼10.54
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0294.46 ▼5.4441.43 ▼2.87
Reviews Tap /wp-admin/options-general.php?page=reviewstap8322.0130.4326.87

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
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_reviewstap_widget
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/reviewstap/includes/class.reviewstap-general.php
    • > /wp-content/plugins/reviewstap/includes/class.reviewstap-display.php
    • > /wp-content/plugins/reviewstap/includes/class.reviewstap-setting.php

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: feedback, reputation, google local, reviews, facebook ratings...

reviewstap/reviewstap.php Passed 13 tests

"ReviewsTap" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
ReviewsTap helps small businesses collect, monitor and manage reviews across a range of online platforms.

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
Good job! No executable or dangerous file extensions detected249 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47232249

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.50
▷ Minimum class complexity4.00
▷ Maximum class complexity35.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods213.33%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
PNG images were not found in this plugin