78% azurecurve-rss-suffix

Code Review | azurecurve RSS Suffix

WordPress plugin azurecurve RSS Suffix scored78%from 54 tests.

About plugin

  • Plugin page: azurecurve-rss-su...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.9
  • WordPress version: 6.3.1
  • First release: Jul 11, 2014
  • Latest release: Sep 16, 2018
  • Number of updates: 19
  • Update frequency: every 84.8 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,622 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.22ms] Passed 4 tests

A check of server-side resources used by azurecurve RSS Suffix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0633.74 ▼4.50
Dashboard /wp-admin3.37 ▲0.0344.65 ▼10.39
Posts /wp-admin/edit.php3.42 ▲0.0745.75 ▼2.70
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.21 ▼15.27
Media Library /wp-admin/upload.php3.29 ▲0.0734.06 ▼0.28
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2638.44
RSS Suffix /wp-admin/admin.php?page=azc-rsss3.2331.00

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

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

Browser metrics Passed 4 tests

azurecurve RSS Suffix: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.18 ▼1.191.62 ▲0.0537.51 ▼4.26
Dashboard /wp-admin2,237 ▲495.79 ▼0.1597.90 ▼8.0879.70 ▲37.03
Posts /wp-admin/edit.php2,117 ▲312.03 ▼0.0135.67 ▼1.9433.25 ▲2.53
Add New Post /wp-admin/post-new.php1,550 ▲1723.36 ▲0.28707.70 ▲41.5749.31 ▼22.11
Media Library /wp-admin/upload.php1,419 ▲284.16 ▲0.04104.35 ▲2.1947.16 ▲0.29
Plugins /wp-admin/admin.php?page=azc-plugin-menus8512.0225.8027.30
RSS Suffix /wp-admin/admin.php?page=azc-rsss8452.0326.8431.75

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=azc-rsss
    • > Notice in wp-content/plugins/azurecurve-rss-suffix/azurecurve-rss-suffix.php+176
    Undefined variable: post_url
    • > GET request to /wp-admin/admin.php?page=azc-rsss
    • > Notice in wp-content/plugins/azurecurve-rss-suffix/azurecurve-rss-suffix.php+176
    Undefined variable: post_title
    • > GET request to /wp-admin/admin.php?page=azc-rsss
    • > Notice in wp-content/plugins/azurecurve-rss-suffix/azurecurve-rss-suffix.php+176
    Undefined variable: site_url
    • > GET request to /wp-admin/admin.php?page=azc-rsss
    • > Notice in wp-content/plugins/azurecurve-rss-suffix/azurecurve-rss-suffix.php+176
    Undefined variable: site_title
    • > GET request to /wp-admin/admin.php?page=azc-rsss
    • > Notice in wp-content/plugins/azurecurve-rss-suffix/azurecurve-rss-suffix.php+176
    Undefined variable: site_tagline

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-rss-suffix/azurecurve-rss-suffix.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: rss, multisite

azurecurve-rss-suffix/azurecurve-rss-suffix.php 92% from 13 tests

"azurecurve RSS Suffix" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected421 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27146405
CSS10216

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic 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%
Functions14
▷ Named functions14100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%