10% nueve-solutions-google-places-reviews

Code Review | Nueve Solutions - Google Places Reviews

WordPress plugin Nueve Solutions - Google Places Reviews scored10%from 54 tests.

About plugin

  • Plugin page: nueve-solutions-g...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 7, 2016
  • Latest release: Apr 18, 2017
  • Number of updates: 68
  • Update frequency: every 2.4 days
  • Top authors: nuevesolutions (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,386 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

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

An overview of server-side resources used by Nueve Solutions - Google Places Reviews
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.38 ▲1.39
Dashboard /wp-admin3.34 ▼0.0048.13 ▼18.89
Posts /wp-admin/edit.php3.39 ▲0.0446.46 ▼1.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.76 ▼15.33
Media Library /wp-admin/upload.php3.26 ▲0.0437.09 ▲0.39

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 6 new options
New tables
wp_Google_Reviews_On_Pages
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Nueve Solutions - Google Places Reviews
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7213.56 ▼0.742.31 ▲0.7343.95 ▲2.67
Dashboard /wp-admin2,237 ▲304.85 ▼0.10102.05 ▼18.4440.98 ▼4.98
Posts /wp-admin/edit.php2,116 ▲132.00 ▼0.0036.88 ▲0.2631.44 ▼8.04
Add New Post /wp-admin/post-new.php1,559 ▲3323.17 ▲5.71689.81 ▲4.8460.28 ▼3.33
Media Library /wp-admin/upload.php1,416 ▲194.26 ▲0.0298.75 ▼8.3343.31 ▲0.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (plugin_backend1.png), #2 (This is the second screen shot)
You can take inspiration from this readme.txt

nueve-solutions-google-places-reviews/NueveSolutions-GooglePlacesReview.php 92% from 13 tests

This is the main PHP file of "Nueve Solutions - Google Places Reviews" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nueve-solutions-google-places-reviews.php" instead of "NueveSolutions-GooglePlacesReview.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
No dangerous file extensions were detected314 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42819189
CSS152125

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.50
▷ Minimum class complexity5.00
▷ Maximum class complexity6.00
Average method complexity5.50
▷ Minimum method complexity5.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
12 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/5stars.png2.37KB1.15KB▼ 51.52%
images/4.9stars.png5.83KB3.52KB▼ 39.65%
images/3stars.png2.44KB0.96KB▼ 60.75%
images/2stars.png2.28KB0.68KB▼ 70.28%
images/4.6stars.png5.77KB3.62KB▼ 37.26%