83% wp-reviews-by-wiremo

Code Review | Wiremo - Customer reviews for WordPress

WordPress plugin Wiremo - Customer reviews for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: wp-reviews-by-wiremo
  • Plugin version: 1.2.23
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 7, 2017
  • Latest release: Jul 31, 2023
  • Number of updates: 60
  • Update frequency: every 34.4 days
  • Top authors: wiremo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /4,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▼2.33ms] Passed 4 tests

A check of server-side resources used by Wiremo - Customer reviews for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3744.22 ▲1.04
Dashboard /wp-admin3.72 ▲0.4153.48 ▼1.16
Posts /wp-admin/edit.php3.77 ▲0.4157.26 ▲8.43
Add New Post /wp-admin/post-new.php6.24 ▲0.3591.00 ▼11.55
Media Library /wp-admin/upload.php3.58 ▲0.3540.54 ▲2.35

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Wiremo - Customer reviews for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲18913.45 ▼0.838.70 ▲6.9544.05 ▲1.41
Dashboard /wp-admin2,219 ▲425.62 ▲0.0286.81 ▼6.0739.46 ▼5.46
Posts /wp-admin/edit.php2,121 ▲212.05 ▲0.0636.06 ▼0.6335.89 ▼3.38
Add New Post /wp-admin/post-new.php1,546 ▼823.37 ▲0.16661.95 ▼20.7154.39 ▼3.07
Media Library /wp-admin/upload.php1,418 ▲184.22 ▼0.0198.99 ▼9.8445.52 ▼1.99

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WRMR_URLAPP - assumed 'WRMR_URLAPP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-reviews-by-wiremo/includes/oauth-user.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/wp-reviews-by-wiremo/includes/oauth-user.php:62
    • > PHP Warning
      Use of undefined constant WRMR_URLAPP - assumed 'WRMR_URLAPP' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-reviews-by-wiremo/includes/oauth-user.php on line 39

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Wiremo review widget.), #2 (Wiremo review widget mobile view.), #3 (Pop-up trigger in action.), #4 (Wiremo Triggers (Pop-up, Open a conversation, Auto-reply).), #5 (Wiremo Review Carousel.), #6 (Wiremo General settings.), #7 (Wiremo Gutenberg blocks and shortcodes.), #8 (Manual Review Request Campaign template.), #9 (Manual Review Request Campaign schedule.)
Please take inspiration from this readme.txt

wp-reviews-by-wiremo/function.php 77% from 13 tests

The primary PHP file in "Wiremo - Customer reviews for WordPress" version 1.2.23 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-reviews-by-wiremo.php" instead of "function.php")
  • Git Repository: An alternative Git repository was detected
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected15,754 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
JSON3009,280
PHP295307713,477
SVG2002,683
Markdown3830202
JavaScript982373
YAML14026
CSS70247
Sass1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity50.88
▷ Minimum class complexity8.00
▷ Maximum class complexity80.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods138
▷ Static methods10.72%
▷ Public methods10374.64%
▷ Protected methods64.35%
▷ Private methods2921.01%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/js/images/icon-wp.png2.17KB1.60KB▼ 26.44%