83% awesome-google-suggestion

Code Review | AWESOME Google Suggestion

WordPress plugin AWESOME Google Suggestion scored 83% from 54 tests.

About plugin

  • Plugin page: awesome-google-su...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Jun 27, 2017
  • Latest release: Jun 27, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: keisuke1988 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 708 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼30.08ms] Passed 4 tests

A check of server-side resources used by AWESOME Google Suggestion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.08 ▼6.70
Dashboard /wp-admin3.32 ▲0.0267.74 ▲19.28
Posts /wp-admin/edit.php3.37 ▲0.0251.72 ▼3.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0498.84 ▼105.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.88 ▼3.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for AWESOME Google Suggestion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.951.85 ▲0.3448.16 ▲2.30
Dashboard /wp-admin2,206 ▲274.84 ▼1.03105.93 ▼8.3637.40 ▼6.32
Posts /wp-admin/edit.php2,089 ▼61.99 ▼0.0638.02 ▼11.1830.40 ▼11.83
Add New Post /wp-admin/post-new.php1,534 ▲123.63 ▲0.31643.33 ▼19.5858.56 ▲0.84
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.03103.18 ▼8.6542.92 ▼3.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-google-suggestion/awesome-google-suggestions.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: google, suggestion, input

awesome-google-suggestion/awesome-google-suggestions.php 77% from 13 tests

The principal PHP file in "AWESOME Google Suggestion" v. 0.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesome-google-suggestion.php" instead of "awesome-google-suggestions.php")
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "4.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin163 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1135096
JavaScript17367

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin