83% app-reviews-lite

Code Review | App Reviews LITE

WordPress plugin App Reviews LITE scored 83% from 54 tests.

About plugin

  • Plugin page: app-reviews-lite
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.01-5.4
  • WordPress version: 6.3.1
  • First release: Jan 24, 2016
  • Latest release: Jul 11, 2020
  • Number of updates: 13
  • Update frequency: every 125.5 days
  • Top authors: admapps (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.46ms] Passed 4 tests

Analyzing server-side resources used by App Reviews LITE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.23 ▼8.98
Dashboard /wp-admin3.32 ▲0.0259.87 ▲11.29
Posts /wp-admin/edit.php3.37 ▲0.0149.93 ▼0.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.64 ▼7.56
Media Library /wp-admin/upload.php3.25 ▲0.0135.87 ▼0.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by App Reviews LITE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.075.19 ▲3.1842.16 ▼2.45
Dashboard /wp-admin2,206 ▲185.90 ▲0.04108.49 ▲5.2637.66 ▼9.44
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0239.74 ▼1.4834.65 ▲0.17
Add New Post /wp-admin/post-new.php1,534 ▲123.22 ▲0.09636.45 ▼48.9654.25 ▲2.02
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0298.13 ▼3.6042.46 ▼3.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/app-reviews-lite/AppReviews.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

app-reviews-lite/AppReviews.php 85% from 13 tests

The main PHP script in "App Reviews LITE" version 1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("app-reviews-lite.php" instead of "AppReviews.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13869

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions2
▷ Named functions2100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
4.png3.65KB1.86KB▼ 49.01%
5.png3.55KB1.72KB▼ 51.53%
3.png3.54KB1.79KB▼ 49.50%
1.png3.20KB1.76KB▼ 45.02%
2.png3.42KB1.76KB▼ 48.69%