89% ultimate-related-content

Code Review | Ultimate Related Content

WordPress plugin Ultimate Related Content scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-related-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Sep 11, 2020
  • Number of updates: 6
  • Update frequency: every 1.3 days
  • Top authors: salar6990 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Ultimate Related Content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.22 ▼5.07
Dashboard /wp-admin3.31 ▲0.0148.74 ▼7.30
Posts /wp-admin/edit.php3.36 ▲0.0146.82 ▼6.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.02 ▼4.56
Media Library /wp-admin/upload.php3.24 ▲0.0136.41 ▼0.93

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
sg_rc_settings

Browser metrics Passed 4 tests

Ultimate Related Content: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.37 ▼0.161.72 ▼0.1844.88 ▼0.35
Dashboard /wp-admin2,198 ▲215.60 ▲0.0092.93 ▲4.5340.91 ▼2.12
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0235.59 ▼4.3033.03 ▼2.68
Add New Post /wp-admin/post-new.php1,526 ▼023.65 ▲0.55710.31 ▼8.8554.28 ▼15.35
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.03103.22 ▼3.7645.71 ▼0.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • sg_rc_settings

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: related, related posts, related content, tags

ultimate-related-content/related-content.php 85% from 13 tests

This is the main PHP file of "Ultimate Related Content" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ultimate-related-content.php" instead of "related-content.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected502 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP56819300
CSS29064
Sass24058
PO File1131345
JavaScript18035

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin