68% jc-link-maker

Code Review | JC Link Maker

WordPress plugin JC Link Maker scored68%from 54 tests.

About plugin

  • Plugin page: jc-link-maker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2014
  • Latest release: Apr 9, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rajiv-jyasha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.71ms] Passed 4 tests

This is a short check of server-side resources used by JC Link Maker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.14 ▼15.18
Dashboard /wp-admin3.36 ▲0.0546.65 ▼4.21
Posts /wp-admin/edit.php3.47 ▲0.1148.60 ▲3.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.64 ▼5.15
Media Library /wp-admin/upload.php3.28 ▲0.0534.44 ▲1.71
Link Maker /wp-admin/admin.php?page=jc-link-maker/link-maker.php3.2235.76
Add Links /wp-admin/admin.php?page=jc-link-maker/link-maker.php-addLinks3.2231.08

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for JC Link Maker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.22 ▼1.371.69 ▼0.1537.97 ▼8.52
Dashboard /wp-admin2,236 ▲484.85 ▼1.05120.55 ▲7.1840.77 ▼7.17
Posts /wp-admin/edit.php2,116 ▲272.00 ▼0.0138.78 ▲0.3236.03 ▲1.20
Add New Post /wp-admin/post-new.php1,555 ▲2223.48 ▲0.37643.70 ▼19.7762.88 ▲12.49
Media Library /wp-admin/upload.php1,415 ▲274.19 ▼0.0197.15 ▼0.3940.98 ▼0.08
Link Maker /wp-admin/admin.php?page=jc-link-maker/link-maker.php8072.0523.8625.96
Add Links /wp-admin/admin.php?page=jc-link-maker/link-maker.php-addLinks8712.0722.9425.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method LinkMaker::uninstall() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=jc-link-maker/link-maker.php
    • > Notice in wp-content/plugins/jc-link-maker/lib/LinkMaker/Admin.php+32
    Undefined index: action
    • > GET request to /wp-admin/admin.php?page=jc-link-maker/link-maker.php-addLinks
    • > Notice in wp-content/plugins/jc-link-maker/lib/LinkMaker/Admin.php+85
    Undefined index: submit

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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/jc-link-maker/views/admin_addLinks.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jc-link-maker/link-maker.php:192
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/jc-link-maker/views/admin_links.php:4

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can look at the official readme.txt

jc-link-maker/link-maker.php 92% from 13 tests

The primary PHP file in "JC Link Maker" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jc-link-maker.php" instead of "link-maker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin380 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP65674380

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods313.04%
▷ Public methods1773.91%
▷ Protected methods00.00%
▷ Private methods626.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png115.79KB12.86KB▼ 88.89%