10% simply-related-posts

Code Review | Simply Related Posts

WordPress plugin Simply Related Posts scored10%from 54 tests.

About plugin

  • Plugin page: simply-related-posts
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Jan 15, 2013
  • Latest release: Oct 23, 2014
  • Number of updates: 16
  • Update frequency: every 40.4 days
  • Top authors: danielauener (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /6,644 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/simply-related-posts/simply-related-posts.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; SimplyRelatedPosts has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼58.77ms] Passed 4 tests

Server-side resources used by Simply Related Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.40 ▼45.05
Dashboard /wp-admin2.11 ▼1.195.48 ▼45.98
Posts /wp-admin/edit.php2.11 ▼1.255.59 ▼44.02
Add New Post /wp-admin/post-new.php2.11 ▼3.786.33 ▼100.01
Media Library /wp-admin/upload.php2.11 ▼1.125.85 ▼29.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_simplyrelatedposts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Simply Related Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.001.59 ▲0.0939.04 ▲2.81
Dashboard /wp-admin2,192 ▲155.58 ▼0.0883.54 ▼6.6640.35 ▼4.65
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0835.30 ▲0.4834.94 ▼0.38
Add New Post /wp-admin/post-new.php1,526 ▼1023.76 ▲5.51683.13 ▲90.0554.54 ▼17.80
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0294.81 ▼3.8245.13 ▼0.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simply-related-posts/simply-related-posts.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; SimplyRelatedPosts has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_simplyrelatedposts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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
Please fix the following items
  • 1× 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/simply-related-posts/simply-related-posts.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === simply-related-posts === )
You can look at the official readme.txt

simply-related-posts/simply-related-posts.php Passed 13 tests

"Simply Related Posts" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
A widget that simply gives you related posts by taxonomy.

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
There were no executable files found in this plugin147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1279108
PO File1111539

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.03KB5.53KB▼ 54.06%