62% everest-review-lite

Code Review | Everest Review Lite - User/Admin review plugin for WordPress

WordPress plugin Everest Review Lite - User/Admin review plugin for WordPress scored 62% from 54 tests.

About plugin

  • Plugin page: everest-review-lite
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 5.8.1
  • First release: Oct 25, 2017
  • Latest release: Mar 21, 2021
  • Number of updates: 15
  • Update frequency: every 83.0 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,039 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼186.46ms] Passed 4 tests

This is a short check of server-side resources used by Everest Review Lite - User/Admin review plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.1126.09 ▲0.56
Dashboard /wp-admin3.25 ▲0.1937.67 ▲1.49
Posts /wp-admin/edit.php3.30 ▲0.1932.31 ▲0.99
Add New Post /wp-admin/post-new.php5.15 ▼0.2950.30 ▼744.31
Media Library /wp-admin/upload.php3.13 ▲0.1323.11 ▼3.08
Add Review Template /wp-admin/post-new.php?post_type=everestreview3.1126.96
Review Forms /wp-admin/edit.php?post_type=everestreview&page=everest-review-form3.1722.72
General Settings /wp-admin/edit.php?post_type=everestreview&page=everest-review-general-setting3.2221.25
User Reviews /wp-admin/edit.php?post_type=everestreview&page=everest-review-submitted-reviews3.2022.45
Add Review Form /wp-admin/edit.php?post_type=everestreview&page=everest-review-new-form3.3320.21
Review Templates /wp-admin/edit.php?post_type=everestreview3.1722.78
How To Use /wp-admin/edit.php?post_type=everestreview&page=everest-review-how-to3.1619.55
More WordPress Stuffs /wp-admin/edit.php?post_type=everestreview&page=everest-review-about-us3.1620.57

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 91 new files
Database: 2 new tables, 3 new options
New tables
wp_everest_user_review_table
wp_everest_review_form_table
New WordPress options
erp_submission_form_setting
er_typography
review_section_sort

Browser metrics Passed 4 tests

Everest Review Lite - User/Admin review plugin for WordPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,959 ▲33217.40 ▲1.7010.43 ▲5.16117.30 ▲38.42
Dashboard /wp-admin3,035 ▲1367.11 ▲0.95119.89 ▼15.24167.93 ▼1.77
Posts /wp-admin/edit.php2,821 ▲813.39 ▲0.16101.49 ▲40.11140.73 ▼0.19
Add New Post /wp-admin/post-new.php2,406 ▼1,40115.69 ▼2.82397.16 ▼78.34156.80 ▼4.69
Media Library /wp-admin/upload.php1,865 ▲1196.24 ▲0.70116.78 ▼34.50186.18 ▲0.03
Add Review Template /wp-admin/post-new.php?post_type=everestreview5,2744.93156.49222.36
Review Forms /wp-admin/edit.php?post_type=everestreview&page=everest-review-form1,3633.2065.23119.09
General Settings /wp-admin/edit.php?post_type=everestreview&page=everest-review-general-setting1,7163.0564.57168.04
User Reviews /wp-admin/edit.php?post_type=everestreview&page=everest-review-submitted-reviews1,3793.2561.24101.06
Add Review Form /wp-admin/edit.php?post_type=everestreview&page=everest-review-new-form2,2292.9464.13123.85
Review Templates /wp-admin/edit.php?post_type=everestreview1,5283.3284.36106.71
How To Use /wp-admin/edit.php?post_type=everestreview&page=everest-review-how-to1,3893.2458.57126.01
More WordPress Stuffs /wp-admin/edit.php?post_type=everestreview&page=everest-review-about-us1,6068.02143.94158.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_everest_user_review_table
    • wp_everest_review_form_table
  • The uninstall procedure has failed, leaving 3 options in the database
    • erp_submission_form_setting
    • review_section_sort
    • er_typography

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=everestreview
    • > Notice in wp-content/plugins/everest-review-lite/everest-review-lite.php+489
    Trying to access array offset on value of type bool

SRP 0% 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
  • 28× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/everest-review-lite/inc/frontend/user-review-template/layout-reviews/layout-1.php
    • > /wp-content/plugins/everest-review-lite/inc/backend/setting-fields/erp-user-review-setting-field.php
    • > /wp-content/plugins/everest-review-lite/inc/backend/setting-fields/erp-general-setting-field.php
    • > /wp-content/plugins/everest-review-lite/inc/backend/action/meta-page-post-review-action.php
    • > /wp-content/plugins/everest-review-lite/inc/backend/setting-fields/erp-admin-review-setting-field.php
    • > /wp-content/plugins/everest-review-lite/inc/frontend/review-form-filter.php
    • > /wp-content/plugins/everest-review-lite/inc/backend/action/save-review-form-setting-action.php
    • > /wp-content/plugins/everest-review-lite/inc/frontend/erp-frontend-filter.php
    • > /wp-content/plugins/everest-review-lite/inc/backend/post-page-meta/page-wise-meta-general.php
    • > /wp-content/plugins/everest-review-lite/inc/backend/includes/sidebar.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/everest-review-lite/inc/backend/post-page-meta/page-wise-meta-admin.php on line 8
    • > PHP Notice
      Undefined variable: general_review_settings_parameter in wp-content/plugins/everest-review-lite/inc/backend/post-page-meta/page-wise-meta-admin.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/everest-review-lite/inc/backend/post-page-meta/page-wise-meta-admin.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/everest-review-lite/inc/backend/setting-fields/erp-review-parameter.php:3
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/everest-review-lite/inc/backend/post-page-meta/page-wise-meta-admin.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/everest-review-lite/inc/backend/action/save-user-edit-review-form-action.php:5

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

everest-review-lite/everest-review-lite.php 92% from 13 tests

The primary PHP file in "Everest Review Lite - User/Admin review plugin for WordPress" version 1.0.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
Good job! No executable or dangerous file extensions detected20,176 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
CSS111092257,959
PHP332863725,488
JavaScript87506414,058
SVG1002,671

PHP code Passed 2 tests

An short overview of 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.71
Average class complexity182.00
▷ Minimum class complexity182.00
▷ Maximum class complexity182.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods76
▷ Static methods00.00%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
30 PNG files occupy 1.83MB with 0.73MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
css/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%
css/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%
css/images/ui-bg_glass_100_f6f6f6_1x400.png0.26KB0.12KB▼ 53.44%
css/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%