84% display-related-posts-for-genesis

Code Review | Display Related Posts for Genesis

WordPress plugin Display Related Posts for Genesis scored 84% from 54 tests.

About plugin

  • Plugin page: display-related-p...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 28, 2018
  • Latest release: Sep 28, 2018
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,199 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Display Related Posts for Genesis
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.85 ▼2.41
Dashboard /wp-admin3.31 ▲0.0047.57 ▼4.18
Posts /wp-admin/edit.php3.36 ▲0.0042.05 ▼7.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.59 ▼15.86
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲2.64

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Display Related Posts for Genesis
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.271.76 ▲0.1239.99 ▲1.62
Dashboard /wp-admin2,209 ▲175.97 ▲0.85100.12 ▼12.3238.66 ▼3.42
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0635.76 ▼4.5829.34 ▼6.71
Add New Post /wp-admin/post-new.php1,514 ▼017.72 ▲0.02601.81 ▼77.3856.73 ▼5.71
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0394.29 ▼0.9841.98 ▲1.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\DisplayRelatedPostsForGenesis\\Customizer' not found in wp-content/plugins/display-related-posts-for-genesis/config/defaults.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\DisplayRelatedPostsForGenesis\\Component' not found in wp-content/plugins/display-related-posts-for-genesis/src/RelatedPosts.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'SeoThemes\\DisplayRelatedPostsForGenesis\\Component' not found in wp-content/plugins/display-related-posts-for-genesis/src/Customizer.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
2 plugin tags: genesis, related posts

display-related-posts-for-genesis/display-related-posts-for-genesis.php Passed 13 tests

"Display Related Posts for Genesis" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Displays related posts for Genesis Framework powered sites.

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
There were no executable files found in this plugin861 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP14156392735
Markdown18039
JSON30038
Sass17030
JavaScript13018
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.43
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes116.67%
Methods34
▷ Static methods411.76%
▷ Public methods2985.29%
▷ Protected methods411.76%
▷ Private methods12.94%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants37
▷ Global constants38.11%
▷ Class constants3491.89%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin