84% quick-meta-keywords

Code Review | Quick META Keywords

WordPress plugin Quick META Keywords scored 84% from 54 tests.

About plugin

  • Plugin page: quick-meta-keywords
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Dec 26, 2007
  • Latest release: Apr 10, 2020
  • Number of updates: 20
  • Update frequency: every 224.6 days
  • Top authors: pchere (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 24,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Quick META Keywords
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.17 ▼1.71
Dashboard /wp-admin3.31 ▲0.0146.98 ▼0.91
Posts /wp-admin/edit.php3.36 ▲0.0052.97 ▲2.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.12 ▼4.38
Media Library /wp-admin/upload.php3.23 ▲0.0035.53 ▼1.75

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Quick META Keywords: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.304.44 ▲2.7142.30 ▼0.59
Dashboard /wp-admin2,209 ▲184.86 ▲0.03116.71 ▲11.6042.99 ▲1.66
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0139.42 ▼2.2635.19 ▼0.80
Add New Post /wp-admin/post-new.php1,533 ▲523.14 ▲0.07630.55 ▲24.0269.05 ▲16.06
Media Library /wp-admin/upload.php1,388 ▲64.22 ▲0.03100.45 ▼8.1545.15 ▲1.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-meta-keywords/metakeywords.php:25

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 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Add the meta keywords tag and fills up categories as keywords.) image not found
Please take inspiration from this readme.txt

quick-meta-keywords/metakeywords.php 92% from 13 tests

The primary PHP file in "Quick META Keywords" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("quick-meta-keywords.php" instead of "metakeywords.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10818

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png8.74KB8.03KB▼ 8.10%