84% search-engine-insights

Code Review | Search Engine Insights for Google Search Console

WordPress plugin Search Engine Insights for Google Search Console scored84%from 54 tests.

About plugin

  • Plugin page: search-engine-ins...
  • Plugin version: 2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4
  • WordPress version: 6.3.1
  • First release: Jan 5, 2019
  • Latest release: Dec 2, 2023
  • Number of updates: 73
  • Update frequency: every 24.6 days
  • Top authors: deconf (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /58,363 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▲1.92ms] Passed 4 tests

This is a short check of server-side resources used by Search Engine Insights for Google Search Console
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2552.29 ▲11.42
Dashboard /wp-admin3.87 ▲0.5750.37 ▲1.30
Posts /wp-admin/edit.php3.92 ▲0.5752.36 ▲4.47
Add New Post /wp-admin/post-new.php6.40 ▲0.5292.55 ▼1.95
Media Library /wp-admin/upload.php3.78 ▲0.5538.52 ▲3.86
Setup /wp-admin/admin.php?page=seiwp_setup5.4546.85
Debug /wp-admin/admin.php?page=seiwp_errors_debugging3.7839.10
Settings /wp-admin/admin.php?page=seiwp_settings3.7835.04

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 893 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
seiwp_options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Search Engine Insights for Google Search Console
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲17115.43 ▲1.076.11 ▲4.2739.86 ▼5.28
Dashboard /wp-admin2,323 ▲1437.37 ▲1.76124.09 ▲25.0843.82 ▼0.05
Posts /wp-admin/edit.php2,204 ▲1014.32 ▲2.3655.56 ▲16.8353.21 ▲19.75
Add New Post /wp-admin/post-new.php1,558 ▲2923.38 ▲0.15584.15 ▼45.2257.22 ▼0.44
Media Library /wp-admin/upload.php1,435 ▲324.22 ▲0.0396.16 ▼2.1842.71 ▼0.51
Setup /wp-admin/admin.php?page=seiwp_setup1,3088.08235.4681.83
Debug /wp-admin/admin.php?page=seiwp_errors_debugging1,3597.70196.0150.36
Settings /wp-admin/admin.php?page=seiwp_settings1,6577.98165.2649.41

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

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

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 700× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Psr\\Log\\AbstractLogger' not found in wp-content/plugins/search-engine-insights/tools/vendor/psr/log/Psr/Log/NullLogger.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Google\\Model' not found in wp-content/plugins/search-engine-insights/tools/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessNumericFilter.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Google\\Collection' not found in wp-content/plugins/search-engine-insights/tools/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Google\\Model' not found in wp-content/plugins/search-engine-insights/tools/vendor/google/apiclient-services/src/AnalyticsData/CohortsRange.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Google\\Collection' not found in wp-content/plugins/search-engine-insights/tools/vendor/google/apiclient-services/src/AnalyticsReporting/OrFiltersForSegment.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/search-engine-insights/tools/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Google\\Model' not found in wp-content/plugins/search-engine-insights/tools/vendor/google/apiclient-services/src/SearchConsole/AmpIssue.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Google\\Collection' not found in wp-content/plugins/search-engine-insights/tools/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudience.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Deconf\\SEIWP\\Google\\Model' not found in wp-content/plugins/search-engine-insights/tools/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Deconf\\SEIWP\\Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/search-engine-insights/tools/vendor/psr/http-message/src/ResponseInterface.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: google search console, search console widget, search console, search console dashboard, search console metatag...

search-engine-insights/seiwp.php 92% from 13 tests

The main file in "Search Engine Insights for Google Search Console" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("search-engine-insights.php" instead of "seiwp.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin91,955 lines of code in 875 files:
LanguageFilesBlank linesComment linesLines of code
PHP84911,01856,57288,465
JavaScript135402652,198
CSS12223401,291
SVG1001

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.91
▷ Minimum class complexity1.00
▷ Maximum class complexity634.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces56
Interfaces36
Traits8
Classes789
▷ Abstract classes91.14%
▷ Concrete classes78098.86%
▷ Final classes395.00%
Methods6,123
▷ Static methods2764.51%
▷ Public methods5,66092.44%
▷ Protected methods1642.68%
▷ Private methods2994.88%
Functions206
▷ Named functions8541.26%
▷ Anonymous functions12158.74%
Constants500
▷ Global constants8316.60%
▷ Class constants41783.40%
▷ Public constants417100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/seiwp-icon.png0.34KB0.27KB▼ 19.08%
admin/images/star.png1.47KB1.39KB▼ 5.31%
admin/images/mcdn.png1.07KB1.15KB0.00%
admin/images/seiwp-video.png48.27KB26.81KB▼ 44.46%
admin/images/clicky.png2.51KB1.79KB▼ 28.76%