89% display-post-feed-from-medium

Code Review | Display Post Feed from Medium

WordPress plugin Display Post Feed from Medium scored89%from 54 tests.

About plugin

  • Plugin page: display-post-feed...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 8, 2023
  • Latest release: Aug 8, 2023
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by Display Post Feed from Medium
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.72 ▲6.62
Dashboard /wp-admin3.32 ▲0.0253.01 ▼0.69
Posts /wp-admin/edit.php3.37 ▲0.0146.91 ▼3.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.76 ▲1.66
Media Library /wp-admin/upload.php3.24 ▲0.0140.47 ▲1.73

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Display Post Feed from Medium
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲2314.58 ▼0.021.68 ▼0.3744.30 ▼1.22
Dashboard /wp-admin2,216 ▲365.61 ▼0.0586.88 ▼26.3038.11 ▼3.94
Posts /wp-admin/edit.php2,118 ▲181.99 ▲0.0233.29 ▼1.6934.51 ▼0.44
Add New Post /wp-admin/post-new.php1,550 ▲2417.91 ▼5.21608.16 ▼82.7168.59 ▲12.77
Media Library /wp-admin/upload.php1,418 ▲184.24 ▲0.0198.28 ▼18.2343.56 ▼1.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

display-post-feed-from-medium/display-post-feed-from-medium.php 92% from 13 tests

"Display Post Feed from Medium" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)

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
No dangerous file extensions were detected642 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43838526
CSS21064
JavaScript291152

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.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 2.24MB with 1.66MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png1,905.72KB473.76KB▼ 75.14%
screenshot-2.png38.58KB9.13KB▼ 76.34%
screenshot-1.png345.41KB98.79KB▼ 71.40%