84% news-keywords

Code Review | News Keywords

WordPress plugin News Keywords scored 84% from 54 tests.

About plugin

  • Plugin page: news-keywords
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2012
  • Latest release: Nov 19, 2015
  • Number of updates: 12
  • Update frequency: every 94.4 days
  • Top authors: John_Sear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 3,180 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by News Keywords
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.13 ▲0.59
Dashboard /wp-admin3.31 ▲0.0152.61 ▲3.63
Posts /wp-admin/edit.php3.36 ▲0.0046.96 ▲0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.79 ▼2.06
Media Library /wp-admin/upload.php3.23 ▲0.0038.50 ▲2.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for News Keywords
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼0.984.77 ▲2.9544.55 ▼6.20
Dashboard /wp-admin2,206 ▲184.87 ▲0.03107.37 ▲0.2639.90 ▼6.33
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0135.43 ▼1.1734.53 ▼3.46
Add New Post /wp-admin/post-new.php1,542 ▲12723.43 ▲5.58615.41 ▲40.2655.38 ▼5.89
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.04132.51 ▲23.7553.95 ▲6.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/news-keywords/news_keywords.php:59

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: google, tags, seo, post, meta...

news-keywords/news_keywords.php 85% from 13 tests

The main PHP script in "News Keywords" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("news-keywords.php" instead of "news_keywords.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1212117

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.62
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin