74% wp-autokeyword

Code Review | WP AutoKeyword

WordPress plugin WP AutoKeyword scored74%from 54 tests.

About plugin

  • Plugin page: wp-autokeyword
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2020
  • Latest release: Nov 20, 2022
  • Number of updates: 14
  • Update frequency: every 69.1 days
  • Top authors: EXEIdeas (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /6,736 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.14MB] [CPU: ▼7.93ms] Passed 4 tests

This is a short check of server-side resources used by WP AutoKeyword
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.27 ▼2.48
Dashboard /wp-admin3.46 ▲0.1148.47 ▼18.56
Posts /wp-admin/edit.php3.51 ▲0.1551.94 ▼1.65
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.47 ▼9.03
Media Library /wp-admin/upload.php3.38 ▲0.1539.97 ▲2.86
WP AutoKeyword /wp-admin/tools.php?page=WP-AutoKeyword3.3633.41

Server storage [IO: ▲0.13MB] [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: 10 new files
Database: 1 new table, 6 new options
New tables
wp_wpak_keywords
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP AutoKeyword
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.37 ▲0.021.87 ▼0.0743.17 ▼0.07
Dashboard /wp-admin2,210 ▲305.74 ▲0.0897.71 ▲9.3442.40 ▲4.22
Posts /wp-admin/edit.php2,112 ▲152.09 ▲0.1049.32 ▲14.4034.85 ▲0.22
Add New Post /wp-admin/post-new.php1,534 ▲823.02 ▼0.08702.34 ▲78.9967.49 ▲14.75
Media Library /wp-admin/upload.php1,412 ▲124.27 ▼0.13116.62 ▲11.1043.58 ▼1.12
WP AutoKeyword /wp-admin/tools.php?page=WP-AutoKeyword1,6072.1538.3981.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_wpak_keywords
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-autokeyword/WP-AutoKeyword.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-autokeyword/wp_ak_functions.php:9

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: metatag, keyword, seo, keyword selector, keyword adder...

wp-autokeyword/WP-AutoKeyword.php 85% from 13 tests

The main file in "WP AutoKeyword" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-autokeyword.php" instead of "WP-AutoKeyword.php")
  • Description: The description should be shorter than 140 characters (currently 319 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,155 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2132201897
JavaScript12033159
SVG10099

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Notice-Icon.png1.63KB1.63KB0.00%
images/Warning-Icon.png1.12KB1.22KB0.00%
images/Error-Icon.png1.63KB1.63KB0.06%
images/Success-Icon.png1.61KB1.61KB0.42%