84% redlink

Code Review | Redlink

WordPress plugin Redlink scored84%from 54 tests.

About plugin

  • Plugin page: redlink
  • Plugin version: 1.0.19
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 27, 2013
  • Latest release: Feb 17, 2014
  • Number of updates: 57
  • Update frequency: every 3.6 days
  • Top authors: ziodave (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.55ms] Passed 4 tests

Server-side resources used by Redlink
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.96 ▼7.26
Dashboard /wp-admin3.32 ▲0.0249.08 ▲1.57
Posts /wp-admin/edit.php3.37 ▲0.0247.95 ▲3.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.81 ▼3.11
Media Library /wp-admin/upload.php3.24 ▲0.0235.15 ▲2.60

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Redlink: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14713.74 ▼0.669.08 ▲7.3838.05 ▼5.65
Dashboard /wp-admin2,203 ▲155.82 ▲0.92107.02 ▼3.3935.40 ▼7.75
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0138.86 ▼1.0534.30 ▼2.32
Add New Post /wp-admin/post-new.php1,519 ▼1422.97 ▼0.29648.22 ▼35.1151.52 ▼4.87
Media Library /wp-admin/upload.php1,388 ▲34.11 ▼0.08104.89 ▲4.1645.09 ▲0.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redlink/redlink.php:110

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: semantic web, redlink

redlink/redlink.php Passed 13 tests

The main PHP file in "Redlink" ver. 1.0.19 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
A RedLink plug-in to embed the sign-up form in your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,048 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS128298974
JavaScript3146133955
PHP1201181
HTML12038

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_65_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_flat_0_333333_40x100.png0.21KB0.08KB▼ 60.45%
css/images/ui-bg_highlight-hard_100_f6f6f6_1x100.png0.25KB0.11KB▼ 53.39%
css/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%