84% check-google-result

Code Review | Check Google Result

WordPress plugin Check Google Result scored84%from 54 tests.

About plugin

  • Plugin page: check-google-result
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: Mar 19, 2014
  • Number of updates: 17
  • Update frequency: every 1.0 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,633 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.02MB] [CPU: ▼4.26ms] Passed 4 tests

Server-side resources used by Check Google Result
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.84 ▲3.07
Dashboard /wp-admin3.33 ▼0.0149.20 ▼16.12
Posts /wp-admin/edit.php3.38 ▲0.0352.53 ▼1.56
Add New Post /wp-admin/post-new.php5.91 ▲0.03110.57 ▲6.84
Media Library /wp-admin/upload.php3.26 ▲0.0338.79 ▼2.41
Check Google Result /wp-admin/options-general.php?page=check-google-result-options3.2232.18

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
check_google_result_show_to
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
check_google_result_get_name
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Check Google Result
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.76 ▲0.401.70 ▲0.0338.18 ▼2.49
Dashboard /wp-admin2,199 ▲225.55 ▼0.0285.92 ▼3.8441.75 ▲1.04
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0036.16 ▼4.6632.95 ▼7.04
Add New Post /wp-admin/post-new.php1,536 ▲623.31 ▲0.29669.09 ▲9.2155.78 ▲2.37
Media Library /wp-admin/upload.php1,404 ▲134.18 ▼0.0099.01 ▼7.0244.35 ▲1.00
Check Google Result /wp-admin/options-general.php?page=check-google-result-options8352.1525.3428.52

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • check_google_result_show_to
    • db_upgraded
    • widget_theysaidso_widget
    • check_google_result_get_name

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/check-google-result/options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/check-google-result/check-google-result.php:34

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: check, google, seo

check-google-result/check-google-result.php Passed 13 tests

The main file in "Check Google Result" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
Check your post whether it is in Google Search Result.

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 plugin183 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21725105
PO File2222278

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin