84% link-images-to-none

Code Review | Link Images to None

WordPress plugin Link Images to None scored84%from 54 tests.

About plugin

  • Plugin page: link-images-to-none
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Feb 4, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: Master Farzad (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,756 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.47ms] Passed 4 tests

Analyzing server-side resources used by Link Images to None
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.60 ▼0.84
Dashboard /wp-admin3.31 ▲0.0043.89 ▼2.66
Posts /wp-admin/edit.php3.36 ▲0.0046.93 ▲0.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.47 ▼6.97
Media Library /wp-admin/upload.php3.23 ▲0.0033.91 ▲1.81

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

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

Browser metrics Passed 4 tests

Link Images to None: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▼0.201.73 ▼0.0440.18 ▼8.61
Dashboard /wp-admin2,195 ▲155.59 ▼0.0892.30 ▲0.9738.83 ▼6.60
Posts /wp-admin/edit.php2,103 ▲31.97 ▲0.0236.58 ▼0.8932.13 ▼2.41
Add New Post /wp-admin/post-new.php1,528 ▲223.26 ▲0.28677.01 ▼0.9565.30 ▲11.49
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.11104.22 ▲3.8344.37 ▼0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% 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 no errors were found, this is by no means 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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-images-to-none/link-images-to-none.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (29 tag instead of maximum 10)
You can look at the official readme.txt

link-images-to-none/link-images-to-none.php Passed 13 tests

The primary PHP file in "Link Images to None" version 1.0 is used by WordPress to initiate all plugin functionality
80 characters long description:
Automatically Link images to none in selecting and uploading images in Wordpress

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 plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1788

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin