84% related-articles-by-tag

Code Review | Related Articles by Tag Lite

WordPress plugin Related Articles by Tag Lite scored84%from 54 tests.

About plugin

  • Plugin page: related-articles-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 28, 2013
  • Latest release: Aug 12, 2013
  • Number of updates: 7
  • Update frequency: every 6.4 days
  • Top authors: stesvis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,392 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.05ms] Passed 4 tests

Server-side resources used by Related Articles by Tag Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.18 ▲2.59
Dashboard /wp-admin3.32 ▼0.0247.74 ▼11.95
Posts /wp-admin/edit.php3.38 ▲0.0241.94 ▼2.92
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.22 ▼9.81
Media Library /wp-admin/upload.php3.25 ▲0.0234.67 ▲0.50
Related Articles by Tag /wp-admin/options-general.php?page=related_articles_by_tag_settings3.2131.37

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Related Articles by Tag Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.36 ▼0.061.75 ▲0.1743.30 ▲2.84
Dashboard /wp-admin2,193 ▲195.54 ▼0.0684.52 ▼2.8039.66 ▲0.02
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0135.61 ▼1.2535.25 ▼1.42
Add New Post /wp-admin/post-new.php1,538 ▲1224.64 ▲1.53636.83 ▼49.6763.08 ▲1.93
Media Library /wp-admin/upload.php1,398 ▼54.16 ▼0.0396.31 ▲2.7845.66 ▼0.64
Related Articles by Tag /wp-admin/options-general.php?page=related_articles_by_tag_settings1,0391.9922.0328.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_related_articles_by_tag_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/related-articles-by-tag/related-articles-by-tag-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/related-articles-by-tag/page-tagger.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/related-articles-by-tag/page-tagger.php:5

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

related-articles-by-tag/related-articles-by-tag.php 92% from 13 tests

The entry point to "Related Articles by Tag Lite" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 223 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
Good job! No executable or dangerous file extensions detected504 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP49595372
JavaScript1389132

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.50
▷ Minimum class complexity8.00
▷ Maximum class complexity19.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin