72% racydev-linky

Code Review | RacyDev Linky - Monetize your link

WordPress plugin RacyDev Linky - Monetize your link scored72%from 54 tests.

About plugin

  • Plugin page: racydev-linky
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2021
  • Latest release: Mar 29, 2023
  • Number of updates: 13
  • Update frequency: every 40.2 days
  • Top authors: racydev (84.62%)shahriarprogrammer (23.08%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /502 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.70ms] Passed 4 tests

An overview of server-side resources used by RacyDev Linky - Monetize your link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.89 ▼1.30
Dashboard /wp-admin3.33 ▲0.0346.87 ▼1.26
Posts /wp-admin/edit.php3.44 ▲0.0844.17 ▼1.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.74 ▼18.74
Media Library /wp-admin/upload.php3.25 ▲0.0234.78 ▲3.33
Customize /wp-admin/admin.php?page=racydev_linky-customize3.2630.73
RacyDev Linky Options /wp-admin/admin.php?page=racydev_linky3.2629.47
Enable Pro /wp-admin/admin.php?page=racydev_linky-premium3.2429.30
Analytics /wp-admin/admin.php?page=racydev_linky-analytics3.2428.57

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
racydev_linky_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for RacyDev Linky - Monetize your link
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.15 ▼0.231.72 ▼0.2447.56 ▲5.72
Dashboard /wp-admin2,245 ▲685.59 ▲0.70112.53 ▲8.0836.96 ▼8.15
Posts /wp-admin/edit.php2,128 ▲392.36 ▲0.3940.67 ▲4.0534.64 ▼0.21
Add New Post /wp-admin/post-new.php1,389 ▼12816.88 ▼0.74557.46 ▼45.2831.17 ▼26.10
Media Library /wp-admin/upload.php1,430 ▲424.87 ▲0.63102.30 ▲6.6440.59 ▼1.61
Customize /wp-admin/admin.php?page=racydev_linky-customize9052.3931.4127.87
RacyDev Linky Options /wp-admin/admin.php?page=racydev_linky8832.3729.2228.21
Enable Pro /wp-admin/admin.php?page=racydev_linky-premium8192.2730.7032.70
Analytics /wp-admin/admin.php?page=racydev_linky-analytics7913.55183.0725.83

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/racydev-linky/includes/racydev_linky-post.php
    • > /wp-content/plugins/racydev-linky/includes/racydev_linky-setting.php
    • > /wp-content/plugins/racydev-linky/includes/racydev_linky-enqueue.php
    • > /wp-content/plugins/racydev-linky/includes/racydev_linky-page.php
    • > /wp-content/plugins/racydev-linky/includes/settings/racydev_linky-premium-html.php
    • > /wp-content/plugins/racydev-linky/includes/settings/racydev_linky-analytics-html.php
    • > /wp-content/plugins/racydev-linky/includes/settings/racydev_linky-customize-html.php
    • > /wp-content/plugins/racydev-linky/racydev_linky.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/racydev-linky/includes/settings/racydev_linky-options-html.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=racydev_linky-premium
    • > Console-api (severe) in wp-content/plugins/racydev-linky/assets/js/Chart.js?ver=6.3.1+6621:18
    Failed to create chart: can't acquire context from the given item
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=racydev_linky-premium
    • > Javascript (severe) in unknown
    /wp-content/plugins/racydev-linky/assets/js/Chart.js?ver=6.3.1 6582:16 Uncaught Error: Canvas is already in use. Chart with ID '0' must be destroyed before the canvas can be reused.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: download, wp monetize link, ad, wp link, link generate...

racydev-linky/racydev_linky.php 77% from 13 tests

The principal PHP file in "RacyDev Linky - Monetize your link" v. 1.2.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("racydev-linky.php" instead of "racydev_linky.php")

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
Success! There were no dangerous files found in this plugin13,961 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2821213,222
PHP116753422
CSS2760317

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.25
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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