84% display-remote-posts-block

Code Review | Display Remote Posts Block

WordPress plugin Display Remote Posts Block scored84%from 54 tests.

About plugin

  • Plugin page: display-remote-po...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 23, 2021
  • Latest release: Oct 31, 2023
  • Number of updates: 16
  • Update frequency: every 61.3 days
  • Top authors: domainsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /5,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Display Remote Posts Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.15 ▼5.09
Dashboard /wp-admin3.31 ▲0.0145.52 ▼3.33
Posts /wp-admin/edit.php3.37 ▲0.0146.71 ▼3.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.95 ▼5.84
Media Library /wp-admin/upload.php3.24 ▲0.0137.61 ▲1.45

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Display Remote Posts Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.29 ▼0.061.69 ▲0.1536.49 ▼4.81
Dashboard /wp-admin2,192 ▲155.50 ▼0.1082.35 ▼15.9938.16 ▼6.16
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0136.42 ▼3.9535.50 ▼2.68
Add New Post /wp-admin/post-new.php6,362 ▲4,83427.49 ▲4.11945.37 ▲274.0154.55 ▲2.40
Media Library /wp-admin/upload.php1,403 ▲64.22 ▲0.05110.46 ▲5.0649.18 ▲5.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/display-remote-posts-block/display-remote-posts-block.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: blog, rss, jetpack, block, blogger

display-remote-posts-block/display-remote-posts-block.php Passed 13 tests

The main PHP file in "Display Remote Posts Block" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Block to display recent posts from a WordPress or Blogger blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin467 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22818418
JSON10048
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity105.00
▷ Minimum class complexity105.00
▷ Maximum class complexity105.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods753.85%
▷ Protected methods00.00%
▷ Private methods646.15%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected