83% smart-keywords-tool

Code Review | Smart Keywords Tool - 智能关键词插件

WordPress plugin Smart Keywords Tool - 智能关键词插件 scored83%from 54 tests.

About plugin

  • Plugin page: smart-keywords-tool
  • Plugin version: 1.6.4
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 2, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 34
  • Update frequency: every 46.2 days
  • Top authors: wbolt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /22,816 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
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼6.71ms] Passed 4 tests

Analyzing server-side resources used by Smart Keywords Tool - 智能关键词插件
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2837.07 ▼2.83
Dashboard /wp-admin3.60 ▲0.2647.43 ▼10.80
Posts /wp-admin/edit.php3.72 ▲0.3647.07 ▲0.18
Add New Post /wp-admin/post-new.php6.21 ▲0.3288.41 ▼13.37
Media Library /wp-admin/upload.php3.52 ▲0.3040.09 ▲5.65
Smart Keywords Tool /wp-admin/options-general.php?page=skt_pack3.5133.21

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smart Keywords Tool - 智能关键词插件
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▼0.051.66 ▼0.0640.38 ▲1.80
Dashboard /wp-admin2,199 ▲185.57 ▼0.1985.31 ▼11.2138.20 ▼4.89
Posts /wp-admin/edit.php2,101 ▲12.00 ▼0.0133.13 ▼2.7331.32 ▼5.12
Add New Post /wp-admin/post-new.php1,643 ▲11724.04 ▲0.35671.45 ▼25.1771.31 ▲11.86
Media Library /wp-admin/upload.php1,407 ▲44.29 ▼0.01100.32 ▲0.6145.35 ▲3.48
Smart Keywords Tool /wp-admin/options-general.php?page=skt_pack1,3156.82114.79127.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/smart-keywords-tool/inc/_admin_footer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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
9 plugin tags: opencalais, keyword, block, iflytek, google...

smart-keywords-tool/index.php 77% from 13 tests

This is the main PHP file of "Smart Keywords Tool - 智能关键词插件" version 1.6.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("smart-keywords-tool.php" instead of "index.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "5.6.0")
  • Description: The description should be shorter than 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,495 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP72731162,092
PO File2154184376
JavaScript1205916
SVG7007
CSS3034

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity181.00
▷ Minimum class complexity1.00
▷ Maximum class complexity361.00
Average method complexity9.02
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods44
▷ Static methods4295.45%
▷ Public methods4397.73%
▷ Protected methods00.00%
▷ Private methods12.27%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.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.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
tpl/assets/img/bsl.abf3bf80.png28.97KB28.95KB0.06%