78% appstore-reviews-viewer

Code Review | AppStore Reviews Viewer

WordPress plugin AppStore Reviews Viewer scored78%from 54 tests.

About plugin

  • Plugin page: appstore-reviews-...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.8
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Oct 10, 2018
  • Number of updates: 37
  • Update frequency: every 33.5 days
  • Top authors: gilthonwe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,436 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by AppStore Reviews Viewer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.98 ▲2.94
Dashboard /wp-admin3.38 ▲0.0450.31 ▼16.84
Posts /wp-admin/edit.php3.49 ▲0.1448.24 ▼3.55
Add New Post /wp-admin/post-new.php5.96 ▲0.0795.49 ▼7.74
Media Library /wp-admin/upload.php3.30 ▲0.0840.28 ▼1.35
AppStore Reviews Viewer /wp-admin/options-general.php?page=appstore-reviews-viewer/appstore-review-admin.php3.2731.86

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
asrv_options
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for AppStore Reviews Viewer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.66 ▼0.926.59 ▲4.6642.54 ▼0.50
Dashboard /wp-admin2,207 ▲195.79 ▲0.92102.10 ▼2.2340.25 ▼5.74
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0138.66 ▼1.1234.89 ▲1.56
Add New Post /wp-admin/post-new.php1,536 ▲1722.98 ▼0.19659.82 ▼0.2961.42 ▲2.90
Media Library /wp-admin/upload.php1,392 ▲44.19 ▲0.02101.52 ▲6.4141.33 ▼4.17
AppStore Reviews Viewer /wp-admin/options-general.php?page=appstore-reviews-viewer/appstore-review-admin.php1,5952.0324.5632.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/appstore-reviews-viewer/appstore-review-admin.php:27
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/appstore-reviews-viewer/appstore-review.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/appstore-reviews-viewer/appstore-review-admin.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=appstore-reviews-viewer/appstore-review-admin.php
    • > Network (severe)
    http://button.flattr.com/flattr-badge-large.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

appstore-reviews-viewer/appstore-review.php 85% from 13 tests

The main PHP script in "AppStore Reviews Viewer" version 1.2.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 210 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("appstore-reviews-viewer.php" instead of "appstore-review.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected495 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28252436
CSS18042
JavaScript13017

PHP code Passed 2 tests

This is a very shot 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.20
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin