61% seo-site-auditor-agency

Code Review | WordPress SEO Audit Plugin - WP Site Auditor

WordPress plugin WordPress SEO Audit Plugin - WP Site Auditor scored61%from 54 tests.

About plugin

  • Plugin page: seo-site-auditor-...
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.2
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Jul 5, 2023
  • Number of updates: 34
  • Update frequency: every 49.2 days
  • Top authors: JoseVega (85.29%)greenjaymedia (17.65%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /8,399 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲5.60MB] [CPU: ▲29.14ms] 50% from 4 tests

Server-side resources used by WordPress SEO Audit Plugin - WP Site Auditor
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,109.14ms on /wp-admin/admin.php?page=wpsewcc_welcome_page)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.60MB on /wp-admin/admin.php?page=wpsewcc_welcome_page)
PageMemory (MB)CPU Time (ms)
Home /9.23 ▲5.7770.67 ▲27.65
Dashboard /wp-admin9.25 ▲5.9180.36 ▲13.90
Posts /wp-admin/edit.php9.25 ▲5.9090.11 ▲31.05
Add New Post /wp-admin/post-new.php10.71 ▲4.82140.31 ▲43.96
Media Library /wp-admin/upload.php9.25 ▲6.0382.18 ▲45.79
Site Auditor /wp-admin/admin.php?page=wpsewcc_whats_new9.2565.92
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2567.17
Site Auditor /wp-admin/admin.php?page=wpsewcc_welcome_page9.251,109.14

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 385 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
fs_accounts
widget_theysaidso_widget
wpsewcc_welcome_redirect
widget_recent-posts
widget_recent-comments
can_compress_scripts
fs_debug_mode
theysaidso_admin_options
fs_active_plugins

Browser metrics Passed 4 tests

Checking browser requirements for WordPress SEO Audit Plugin - WP Site Auditor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.73 ▲0.141.69 ▼0.5827.58 ▼22.18
Dashboard /wp-admin2,212 ▲355.64 ▼0.0593.05 ▼10.0393.56 ▲44.39
Posts /wp-admin/edit.php2,136 ▲392.03 ▲0.0139.20 ▲1.5637.53 ▲1.93
Add New Post /wp-admin/post-new.php1,549 ▲2021.84 ▲4.29747.66 ▲94.5447.89 ▼11.60
Media Library /wp-admin/upload.php1,432 ▲324.12 ▼0.1399.47 ▼9.4680.56 ▲35.20
Site Auditor /wp-admin/admin.php?page=wpsewcc_whats_new8062.0328.0824.16
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1001.7227.2929.97
Site Auditor /wp-admin/admin.php?page=wpsewcc_welcome_page9971.7126.2959.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/seo-site-auditor-agency/vendor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 10 options
    • fs_debug_mode
    • can_compress_scripts
    • widget_recent-posts
    • fs_active_plugins
    • wpsewcc_welcome_redirect
    • theysaidso_admin_options
    • fs_accounts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wpsewcc_whats_new
    • > Warning in wp-content/plugins/seo-site-auditor-agency/vendor/vg-plugin-sdk/index.php+174
    include(/1.2.1.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=wpsewcc_whats_new
    • > Warning in wp-content/plugins/seo-site-auditor-agency/vendor/vg-plugin-sdk/index.php+174
    include(): Failed opening '/1.2.1.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=wpsewcc_whats_new
    • > Notice in wp-content/plugins/seo-site-auditor-agency/vendor/vg-plugin-sdk/index.php+176
    Undefined variable: items
    • > GET request to /wp-admin/admin.php?page=wpsewcc_whats_new
    • > Warning in wp-content/plugins/seo-site-auditor-agency/vendor/vg-plugin-sdk/index.php+192
    include(): Filename cannot be empty
    • > GET request to /wp-admin/admin.php?page=wpsewcc_whats_new
    • > Warning in wp-content/plugins/seo-site-auditor-agency/vendor/vg-plugin-sdk/index.php+192
    include(): Failed opening '' for inclusion (include_path='.:/usr/share/php')

SRP 0% 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 items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/seo-site-auditor-agency/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/reader/memory_test.php
    • > /wp-content/plugins/seo-site-auditor-agency/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/memory_test.php
  • 124× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/seo-site-auditor-agency/views/frontend/img-template.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function file_get_html() in wp-content/plugins/seo-site-auditor-agency/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/example/scraping/example_scraping_slashdot.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Iodev\\Whois\\Modules\\Tld\\TldParser' not found in wp-content/plugins/seo-site-auditor-agency/vendor/io-developer/php-whois/src/Iodev/Whois/Modules/Tld/Parsers/AutoParser.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-site-auditor-agency/frontend/checks/found-apple-icon.php:39
    • > PHP Fatal error
      Uncaught Error: Interface 'Iodev\\Whois\\Loaders\\ILoader' not found in wp-content/plugins/seo-site-auditor-agency/vendor/io-developer/php-whois/src/Iodev/Whois/Loaders/MemcachedLoader.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Iodev\\Whois\\Modules\\Tld\\Parsers\\CommonParser' not found in wp-content/plugins/seo-site-auditor-agency/vendor/io-developer/php-whois/src/Iodev/Whois/Modules/Tld/Parsers/BlockParser.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Sunra\\PhpSimple\\HtmlDomParser' not found in wp-content/plugins/seo-site-auditor-agency/frontend/check.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'simple_html_dom' not found in wp-content/plugins/seo-site-auditor-agency/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/strip_testcase.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-site-auditor-agency/backend/options.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'simple_html_dom' not found in wp-content/plugins/seo-site-auditor-agency/vendor/sunra/php-simple-html-dom-parser/Src/Sunra/PhpSimple/simplehtmldom_1_5/testcase/invalid_testcase.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wp site auditor, seo audit, wordpress site audit, site audit plugin, url auditor

seo-site-auditor-agency/index.php 77% from 13 tests

The principal PHP file in "WordPress SEO Audit Plugin - WP Site Auditor" v. 1.2.9 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-site-auditor-agency.php" instead of "index.php")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin59,406 lines of code in 311 files:
LanguageFilesBlank linesComment linesLines of code
PHP2599,89619,38146,154
JSON10004,452
HTML6599504,076
JavaScript117947362,766
CSS2094971,185
PO File1234325577
Markdown3620190
SVG1016

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity50.38
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces11
Interfaces1
Traits1
Classes104
▷ Abstract classes43.85%
▷ Concrete classes10096.15%
▷ Final classes00.00%
Methods1,862
▷ Static methods27714.88%
▷ Public methods1,41575.99%
▷ Protected methods452.42%
▷ Private methods40221.59%
Functions191
▷ Named functions18295.29%
▷ Anonymous functions94.71%
Constants188
▷ Global constants12667.02%
▷ Class constants6232.98%
▷ Public constants62100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.41MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/monitor.png9.13KB5.77KB▼ 36.75%
assets/img/logo.png9.95KB4.94KB▼ 50.37%
(invalid) assets/img/advert.png9.61KB0.00KB▼ 100.00%
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/restriction.png252.82KB40.03KB▼ 84.17%