10% mygwd-rss

Code Review | myGWD RSS ShortCode

WordPress plugin myGWD RSS ShortCode scored10%from 54 tests.

About plugin

  • Plugin page: mygwd-rss
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: May 14, 2015
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: leewells (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,192 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/mygwd-rss/mygwd-rss.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; myGWDrss has a deprecated constructor

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

A check of server-side resources used by myGWD RSS ShortCode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.91 ▲5.47
Dashboard /wp-admin3.31 ▼0.0448.25 ▼11.49
Posts /wp-admin/edit.php3.36 ▲0.0045.08 ▼0.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.45 ▼8.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.34 ▲0.76

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by myGWD RSS ShortCode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.64 ▼0.791.80 ▼0.2543.87 ▼0.05
Dashboard /wp-admin2,209 ▲245.90 ▲0.98100.95 ▼17.2436.99 ▼7.96
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0233.18 ▼3.0535.04 ▲0.16
Add New Post /wp-admin/post-new.php1,514 ▼523.52 ▲0.09691.28 ▲0.6655.20 ▲1.78
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.1294.55 ▼4.5845.44 ▲1.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mygwd-rss/mygwd-rss.php:33

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Example Output)
Please take inspiration from this readme.txt

mygwd-rss/mygwd-rss.php Passed 13 tests

The entry point to "myGWD RSS ShortCode" version 1.0.0 is a PHP file that has certain tags in its header comment area
92 characters long description:
A very simple and customizable RSS shortcode to display formatted RSS anywhere on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected64 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182364

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.32
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin