10% wp-get-keywords

Code Review | Wordpress Get KeyWords

WordPress plugin Wordpress Get KeyWords scored10%from 54 tests.

About plugin

  • Plugin page: wp-get-keywords
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3
  • WordPress version: 6.3.1
  • First release: Mar 26, 2013
  • Latest release: Nov 19, 2013
  • Number of updates: 3
  • Update frequency: every 79.7 days
  • Top authors: sd7087003 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /951 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/wp-get-keywords/wp-get-keywords.php+132
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.60ms] Passed 4 tests

Analyzing server-side resources used by Wordpress Get KeyWords
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.84 ▲1.96
Dashboard /wp-admin3.31 ▲0.0045.54 ▼2.20
Posts /wp-admin/edit.php3.36 ▲0.0048.40 ▼14.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.73 ▼5.97
Media Library /wp-admin/upload.php3.23 ▲0.0038.85 ▼0.02

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Get KeyWords
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.115.44 ▲3.8747.19 ▲0.41
Dashboard /wp-admin2,206 ▲574.88 ▼0.74105.91 ▼10.1038.18 ▼19.20
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0250.82 ▲13.0634.38 ▼0.07
Add New Post /wp-admin/post-new.php1,524 ▼1123.19 ▲0.10657.65 ▼18.7756.73 ▼21.90
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.02102.14 ▼13.7742.56 ▼1.14

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-get-keywords/wp-get-keywords-config.php on line 5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-get-keywords/wp-get-keywords-config.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/wp-get-keywords/wp-get-keywords-config.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/wp-get-keywords/wp-get-keywords-config.php:7
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/wp-get-keywords/wp-get-keywords.php on line 132
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/wp-get-keywords/wp-get-keywords-config.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/wp-get-keywords/wp-get-keywords-config.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Contributors: There were no tags found
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

wp-get-keywords/wp-get-keywords.php Passed 13 tests

"Wordpress Get KeyWords" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
获取网站入口关键词,调用代码if(function_exists('keywords_show')){keywords_show();}

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
There were no executable files found in this plugin371 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43334371

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin