90% pryc-wp-google-sitelinks-search-box-snippest

Code Review | PRyC WP: Google Sitelinks Search Box snippest

WordPress plugin PRyC WP: Google Sitelinks Search Box snippest scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-google-si...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Jun 20, 2023
  • Number of updates: 17
  • Update frequency: every 187.7 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,734 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.13ms] Passed 4 tests

This is a short check of server-side resources used by PRyC WP: Google Sitelinks Search Box snippest
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.61 ▼3.53
Dashboard /wp-admin3.31 ▼0.0439.56 ▼18.89
Posts /wp-admin/edit.php3.36 ▲0.0044.72 ▼0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0075.84 ▼15.24
Media Library /wp-admin/upload.php3.23 ▲0.0030.61 ▼2.84

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

PRyC WP: Google Sitelinks Search Box snippest: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.23 ▼0.301.72 ▲0.1437.60 ▼4.38
Dashboard /wp-admin2,198 ▲185.63 ▲0.0094.02 ▲5.6943.11 ▲3.76
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0440.44 ▲2.5834.67 ▲0.76
Add New Post /wp-admin/post-new.php1,526 ▼1123.42 ▲5.25676.04 ▲12.8451.74 ▼8.95
Media Library /wp-admin/upload.php1,397 ▼04.12 ▼0.0694.47 ▼1.4041.08 ▼2.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Default search before), #2 (Default search after)
You can look at the official readme.txt

pryc-wp-google-sitelinks-search-box-snippest/pryc-wp-google-sitelinks-search-box-snippest.php Passed 13 tests

"PRyC WP: Google Sitelinks Search Box snippest" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
Plugin add to homepage code required to activate new Sitelinks Search Box @ Google search

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181324

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.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