84% kads-seo

Code Review | Kads SEO

WordPress plugin Kads SEO scored84%from 54 tests.

About plugin

  • Plugin page: kads-seo
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2018
  • Latest release: Dec 5, 2019
  • Number of updates: 50
  • Update frequency: every 12.2 days
  • Top authors: huynhduy1985 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.65MB] [CPU: ▼15.42ms] Passed 4 tests

Analyzing server-side resources used by Kads SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0543.03 ▼1.83
Dashboard /wp-admin3.38 ▲0.0851.47 ▼1.59
Posts /wp-admin/edit.php3.43 ▲0.0856.02 ▲4.72
Add New Post /wp-admin/post-new.php3.18 ▼2.7138.05 ▼60.63
Media Library /wp-admin/upload.php3.31 ▲0.0837.80 ▲2.39
General Settings /wp-admin/admin.php?page=kads_seo_general_settings3.3360.52
Social Meta /wp-admin/admin.php?page=kads_seo_social_meta3.3351.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables
wp_kads_seo
New WordPress options
_kseo_db_setup_version
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Kads SEO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,718 ▼6813.26 ▼1.101.79 ▼0.4742.60 ▼2.06
Dashboard /wp-admin2,251 ▲805.80 ▲0.2292.46 ▼17.4338.61 ▼6.75
Posts /wp-admin/edit.php2,164 ▲642.34 ▲0.3838.51 ▲0.7733.11 ▼2.72
Add New Post /wp-admin/post-new.php4,425 ▲2,89921.99 ▼1.64671.93 ▼14.7646.85 ▼6.81
Media Library /wp-admin/upload.php1,459 ▲594.51 ▲0.38103.70 ▼4.3345.57 ▲0.13
General Settings /wp-admin/admin.php?page=kads_seo_general_settings2,6193.4059.9390.02
Social Meta /wp-admin/admin.php?page=kads_seo_social_meta1,9873.3242.1977.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • _kseo_db_setup_version
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/kads-seo/themes/welcome.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/kads-seo/themes/sitemap.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/kads-seo/themes/social.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/kads-seo/themes/general.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

kads-seo/kads-seo.php Passed 13 tests

The principal PHP file in "Kads SEO" v. 1.3.7 is loaded by WordPress automatically on each request
105 characters long description:
Use Kads SEO to optimize your WordPress site for SEO. It’s easy and works out of the box for beginners.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected6,815 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP153812564,298
CSS38562,057
JavaScript37124449
HTML10511

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity146.00
▷ Minimum class complexity14.00
▷ Maximum class complexity369.00
Average method complexity5.26
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods102
▷ Static methods10.98%
▷ Public methods6563.73%
▷ Protected methods00.00%
▷ Private methods3736.27%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/image-placeholder.png2.49KB2.67KB0.00%