78% everest-google-places-reviews-lite

Code Review | Everest GPlaces Business Reviews

WordPress plugin Everest GPlaces Business Reviews scored 78% from 54 tests.

About plugin

  • Plugin page: everest-google-pl...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.9.2
  • First release: Oct 11, 2017
  • Latest release: Dec 13, 2021
  • Number of updates: 22
  • Update frequency: every 69.3 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 5,412 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼291.81ms] Passed 4 tests

This is a short check of server-side resources used by Everest GPlaces Business Reviews
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.2755.03 ▲4.87
Dashboard /wp-admin3.63 ▲0.2234.47 ▼5.89
Posts /wp-admin/edit.php3.85 ▲0.2141.16 ▼2.04
Add New Post /wp-admin/post-new.php7.10 ▲0.1392.04 ▼1,163.63
Media Library /wp-admin/upload.php3.51 ▲0.2227.14 ▲4.31
All Everest GPlaces Business Reviews /wp-admin/edit.php?post_type=egprreviews3.6226.93
Add New Reviews /wp-admin/post-new.php?post_type=egprreviews3.8440.02
Documentation /wp-admin/edit.php?post_type=egprreviews&page=egpr-doclinks3.3118.59
Configuration Settings /wp-admin/edit.php?post_type=egprreviews&page=egpr-configuration-settings3.5425.95
Check Premium Version /wp-admin/edit.php?post_type=egprreviews&page=egpr-premium3.3119.01

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 2 new options
New WordPress options
egp_reviews
widget_everest_gpr_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Everest GPlaces Business Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,980 ▲22716.50 ▲0.6010.04 ▲3.6229.49 ▲26.95
Dashboard /wp-admin2,944 ▲906.14 ▼0.05114.18 ▼20.78160.63 ▲1.65
Posts /wp-admin/edit.php2,743 ▲523.24 ▲0.0162.35 ▼4.12140.29 ▼11.82
Add New Post /wp-admin/post-new.php1,784 ▲12321.65 ▲5.35482.85 ▲98.02156.57 ▼9.08
Media Library /wp-admin/upload.php1,748 ▲505.60 ▲0.08142.99 ▼4.43183.97 ▲3.50
All Everest GPlaces Business Reviews /wp-admin/edit.php?post_type=egprreviews1,4794.2087.68132.88
Add New Reviews /wp-admin/post-new.php?post_type=egprreviews5,3965.73166.27177.32
Documentation /wp-admin/edit.php?post_type=egprreviews&page=egpr-doclinks1,61712.86392.84268.30
Configuration Settings /wp-admin/edit.php?post_type=egprreviews&page=egpr-configuration-settings2,3297.81145.75137.89
Check Premium Version /wp-admin/edit.php?post_type=egprreviews&page=egpr-premium1,60611.28315.50161.16

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • egp_reviews
    • widget_everest_gpr_widget

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)
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 29× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/everest-google-places-reviews-lite/inc/admin/post_type_metabox/egpr-gmap-meta.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/classes/class-egpr-api-settings.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/inc/admin/pages/egpr-shortcode-usage.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/inc/frontend/egpr-shortcode.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/inc/frontend/custom-style.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/classes/class-register-widget.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/classes/class-egpr-register-postypes.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/classes/class-egpr-activation.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/classes/class-egpr-model.php
    • > /wp-content/plugins/everest-google-places-reviews-lite/inc/admin/pages/api-settings.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=egprreviews&page=egpr-doclinks
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/everest-google-places-reviews-lite/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=egprreviews&page=egpr-premium
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/edit.php?post_type=egprreviews&page=egpr-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/everest-google-places-reviews/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/edit.php?post_type=egprreviews&page=egpr-premium
    • > Network (severe)
    https://accesspressthemes.com/wp-content/uploads/2014/05/everest-google-places-reviews-rate-us-settings.pn - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

everest-google-places-reviews-lite/everest-google-places-reviews-lite.php Passed 13 tests

The entry point to "Everest GPlaces Business Reviews" version 2.0.0 is a PHP file that has certain tags in its header comment area
101 characters long description:
Showcase Your Google Places / Business Reviews for one or many businesses using shortcode and widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected8,790 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
CSS4541203,460
SVG1002,671
PHP302072552,332
JavaScript34952327

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods61
▷ Static methods11.64%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
25 PNG files occupy 0.32MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/images/headers/header-left-2.png3.13KB1.82KB▼ 41.69%
assets/frontend/images/headers/header-right-2.png3.15KB1.78KB▼ 43.49%
assets/backend/images/everest_google_reviews_lite_logo.png9.08KB3.40KB▼ 62.58%
assets/backend/images/googleplus.png1.91KB0.99KB▼ 48.06%
assets/frontend/images/nopreview.png1.14KB1.03KB▼ 9.93%