83% rvw-add-link

Code Review | rvw Add Link

WordPress plugin rvw Add Link scored83%from 54 tests.

About plugin

  • Plugin page: rvw-add-link
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5
  • WordPress version: 6.3.1
  • First release: Aug 9, 2013
  • Latest release: Jul 27, 2016
  • Number of updates: 19
  • Update frequency: every 57.1 days
  • Top authors: rvwood (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,361 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.03ms] Passed 4 tests

A check of server-side resources used by rvw Add Link
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.48 ▼1.62
Dashboard /wp-admin3.33 ▲0.0350.34 ▼1.50
Posts /wp-admin/edit.php3.39 ▲0.0344.61 ▼8.14
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.04 ▼8.86
Media Library /wp-admin/upload.php3.26 ▲0.0336.09 ▼0.52

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for rvw Add Link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.66 ▼0.5944.60 ▲1.53
Dashboard /wp-admin2,198 ▲275.61 ▲0.0887.88 ▼0.7642.97 ▲3.45
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0233.21 ▼8.0234.73 ▼0.91
Add New Post /wp-admin/post-new.php1,588 ▲6018.52 ▼4.51606.48 ▼68.7272.39 ▲17.26
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0196.04 ▼19.2942.40 ▼4.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rvw-add-link/rvw-add-link.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please a description for screenshot #2 in rvw-add-link/assets to your readme.txt
The official readme.txt might help

rvw-add-link/rvw-add-link.php Passed 13 tests

The entry point to "rvw Add Link" version 1.4 is a PHP file that has certain tags in its header comment area
36 characters long description:
Add links to a post using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,781 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,2605886,598
CSS452921,017
PHP12647166

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity2.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods120.00%
▷ Protected methods00.00%
▷ Private methods480.00%
Functions5
▷ Named functions5100.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
24 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%