78% total-news-keywords

Code Review | Total News Keywords

WordPress plugin Total News Keywords scored78%from 54 tests.

About plugin

  • Plugin page: total-news-keywords
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Oct 11, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ClearCode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼17.35ms] Passed 4 tests

An overview of server-side resources used by Total News Keywords
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.96 ▼1.60
Dashboard /wp-admin3.33 ▲0.0349.61 ▼5.40
Posts /wp-admin/edit.php3.38 ▲0.0243.60 ▲0.58
Add New Post /wp-admin/post-new.php3.11 ▼2.7734.58 ▼62.97
Media Library /wp-admin/upload.php3.25 ▲0.0236.33 ▲3.09
Total News Keywords /wp-admin/options-general.php?page=total_news_keywords_admin3.1930.12

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

Browser metrics Passed 4 tests

A check of browser resources used by Total News Keywords
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.11 ▼1.272.07 ▲0.2843.53 ▼0.75
Dashboard /wp-admin2,210 ▲225.86 ▲0.9899.94 ▼16.4939.02 ▼9.62
Posts /wp-admin/edit.php2,090 ▲12.06 ▲0.0035.90 ▼6.1733.51 ▼2.94
Add New Post /wp-admin/post-new.php6,265 ▲4,72326.16 ▲7.72932.58 ▲307.7771.49 ▲22.69
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0193.02 ▼8.8643.35 ▼0.06
Total News Keywords /wp-admin/options-general.php?page=total_news_keywords_admin8512.0733.5932.85

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=total_news_keywords_admin
    • > Notice in wp-content/plugins/total-news-keywords/total-news-keywords.php+108
    Undefined variable: total_news_keywords_updated
    • > GET request to /wp-admin/options-general.php?page=total_news_keywords_admin
    • > Notice in wp-content/plugins/total-news-keywords/total-news-keywords.php+139
    Undefined variable: total_news_keywords_version

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/total-news-keywords/total-news-keywords.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Administration settings), #2 (Post options)
The official readme.txt might help

total-news-keywords/total-news-keywords.php Passed 13 tests

"Total News Keywords" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Automatic news_keywords meta data from tags or custom field.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected168 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15123168

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png10.28KB4.86KB▼ 52.68%
screenshot-2.png17.37KB7.82KB▼ 54.97%