78% xyzzy-basic-seo-analytics

Code Review | XYZZY Basic SEO & Analytics

WordPress plugin XYZZY Basic SEO & Analytics scored78%from 54 tests.

About plugin

  • Plugin page: xyzzy-basic-seo-a...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: Jun 18, 2021
  • Number of updates: 23
  • Update frequency: every 25.3 days
  • Top authors: xyzzyestudioweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,398 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.08MB] [CPU: ▼6.60ms] Passed 4 tests

This is a short check of server-side resources used by XYZZY Basic SEO & Analytics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.45 ▼0.74
Dashboard /wp-admin3.38 ▲0.0747.40 ▼1.37
Posts /wp-admin/edit.php3.49 ▲0.1442.67 ▼7.80
Add New Post /wp-admin/post-new.php6.00 ▲0.1279.98 ▼15.84
Media Library /wp-admin/upload.php3.30 ▲0.0735.09 ▼1.39
Ajustes /wp-admin/admin.php?page=xyzzy-basic-seo-analytics/inc/views/xbs-admin.php3.2731.92
Acerca de /wp-admin/admin.php?page=xyzzy-basic-seo-analytics/inc/views/xbs-instructions.php3.2731.39

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

XYZZY Basic SEO & Analytics: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8614.47 ▲0.081.75 ▼0.0846.92 ▲1.52
Dashboard /wp-admin2,231 ▲404.87 ▼1.03113.78 ▲3.0245.87 ▲4.05
Posts /wp-admin/edit.php2,114 ▲252.02 ▼0.0433.53 ▼3.9833.73 ▲0.77
Add New Post /wp-admin/post-new.php6,230 ▲4,71119.33 ▼3.76874.82 ▲225.3251.80 ▲4.41
Media Library /wp-admin/upload.php1,413 ▲254.20 ▲0.0193.52 ▼21.7040.58 ▼7.81
Ajustes /wp-admin/admin.php?page=xyzzy-basic-seo-analytics/inc/views/xbs-admin.php8402.0222.2427.47
Acerca de /wp-admin/admin.php?page=xyzzy-basic-seo-analytics/inc/views/xbs-instructions.php8352.0222.2827.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/xyzzy-basic-seo-analytics/xyzzy-basic-seo.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xyzzy-basic-seo-analytics/inc/functions/head-embed.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/xyzzy-basic-seo-analytics/inc/views/xbs-instructions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xyzzy-basic-seo-analytics/inc/functions/admin-meta.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/xyzzy-basic-seo-analytics/inc/views/xbs-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xyzzy-basic-seo-analytics/inc/functions/admin-menu.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xyzzy-basic-seo-analytics/inc/functions/enqueue-styles.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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 news, analytics, seo

xyzzy-basic-seo-analytics/xyzzy-basic-seo.php 85% from 13 tests

The main file in "XYZZY Basic SEO & Analytics" v. 1.0.5 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: Please rename the main PHP file in this plugin to the plugin slug ("xyzzy-basic-seo-analytics.php" instead of "xyzzy-basic-seo.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected654 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP89636372
PO File25254227
JavaScript18052
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
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