84% search-console

Code Review | Search Console

WordPress plugin Search Console scored84%from 54 tests.

About plugin

  • Plugin page: search-console
  • Plugin version: 2.8.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Nov 16, 2023
  • Number of updates: 196
  • Update frequency: every 9.7 days
  • Top authors: tropicalista (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active /129,467 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.20ms] Passed 4 tests

Analyzing server-side resources used by Search Console
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.99 ▲1.34
Dashboard /wp-admin3.36 ▲0.0546.12 ▼1.26
Posts /wp-admin/edit.php3.40 ▲0.0547.97 ▼2.42
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.09 ▲3.16
Media Library /wp-admin/upload.php3.27 ▲0.0435.05 ▲4.21
Dashboard /wp-admin/admin.php?page=search-console3.2532.84
Settings /wp-admin/admin.php?page=search-console-settings3.2533.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Search Console
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲14517.09 ▲2.381.87 ▼0.0336.72 ▼7.69
Dashboard /wp-admin2,313 ▲1367.44 ▲1.77241.55 ▲150.0145.36 ▼0.16
Posts /wp-admin/edit.php2,127 ▲272.00 ▲0.0240.53 ▲1.7437.61 ▲4.71
Add New Post /wp-admin/post-new.php1,548 ▼1022.85 ▼2.89549.95 ▼125.7039.78 ▼39.33
Media Library /wp-admin/upload.php1,427 ▲274.28 ▲0.0194.67 ▼1.8244.31 ▲1.66
Dashboard /wp-admin/admin.php?page=search-console1,01112.75205.1539.78
Settings /wp-admin/admin.php?page=search-console-settings1,12913.74192.2441.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • search_console_version
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/search-console/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/search-console/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Warning
      require_once(wp-content/plugins/search-console/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/search-console/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/search-console/search-console.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Search_Console\\Rest\\add_action() in wp-content/plugins/search-console/includes/Rest/Token.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Search_Console\\Rest\\add_action() in wp-content/plugins/search-console/includes/Rest/Settings.php:40

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 errors were detected

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
4 plugin tags: google search console, search console, search console metatag, search console widget

search-console/search-console.php Passed 13 tests

The principal PHP file in "Search Console" v. 2.8.2 is loaded by WordPress automatically on each request
85 characters long description:
This plugin displays your Google Search Console Analytics data inside your WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,316 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP267011,3952,829
Markdown1820255
PO File154120114
JSON140077
YAML16032
JavaScript3008
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity26.75
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods160
▷ Static methods2113.12%
▷ Public methods12175.62%
▷ Protected methods63.75%
▷ Private methods3320.62%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected