84% wp-rss-validator

Code Review | WP RSS Validator

WordPress plugin WP RSS Validator scored84%from 54 tests.

About plugin

  • Plugin page: wp-rss-validator
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2012
  • Latest release: Aug 22, 2012
  • Number of updates: 6
  • Update frequency: every 6.5 days
  • Top authors: norcross (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,928 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▲229.11ms] 75% from 4 tests

Server-side resources used by WP RSS Validator
Please take the time to fix the following items
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 229.11ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.45 ▲8.56
Dashboard /wp-admin3.43 ▲0.091,101.99 ▲1,039.58
Posts /wp-admin/edit.php3.40 ▲0.0443.76 ▼5.41
Add New Post /wp-admin/post-new.php5.96 ▲0.081,010.58 ▲913.82
Media Library /wp-admin/upload.php3.27 ▲0.0440.43 ▼0.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP RSS Validator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13014.36 ▼0.251.59 ▲0.0634.59 ▼8.61
Dashboard /wp-admin2,297 ▲1205.73 ▲0.1986.86 ▲3.7352.89 ▲12.47
Posts /wp-admin/edit.php2,097 ▼31.98 ▲0.0332.69 ▼1.7033.42 ▼2.43
Add New Post /wp-admin/post-new.php6,280 ▲4,75426.02 ▲2.91926.43 ▲292.9673.40 ▲15.96
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.0099.97 ▲4.2140.88 ▼3.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rss-validator/wp-rss-validator.php:45

User-side errors Passed 1 test

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

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
1 plugin tags: rss

wp-rss-validator/wp-rss-validator.php Passed 13 tests

The principal PHP file in "WP RSS Validator" v. 1.1 is loaded by WordPress automatically on each request
60 characters long description:
Checks your RSS feed against the W3 RSS validator for errors

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected285 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP110699163
CSS118284
JavaScript113638

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.38KB7.79KB▼ 59.80%
lib/img/icon-question.png1.22KB1.20KB▼ 1.60%
lib/img/meta-yes.png0.62KB0.62KB0.00%