83% image-rights

Code Review | Image Rights

WordPress plugin Image Rights scored 83% from 54 tests.

About plugin

  • Plugin page: image-rights
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 2, 2021
  • Latest release: Sep 8, 2023
  • Number of updates: 8
  • Update frequency: every 118.5 days
  • Top authors: cleuenberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Image Rights
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.13 ▼4.62
Dashboard /wp-admin3.32 ▲0.0243.52 ▼7.20
Posts /wp-admin/edit.php3.37 ▲0.0243.09 ▼7.14
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.09 ▼0.45
Media Library /wp-admin/upload.php3.24 ▲0.0235.08 ▲5.14

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Image Rights
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.76 ▲0.381.78 ▼0.0239.33 ▲0.25
Dashboard /wp-admin2,210 ▲185.87 ▲0.9296.00 ▼15.0739.42 ▼3.21
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0236.71 ▲0.6232.25 ▲1.27
Add New Post /wp-admin/post-new.php1,518 ▲417.63 ▼0.05597.32 ▼107.8454.39 ▲2.54
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.02102.71 ▼12.6746.02 ▼1.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-rights/image-rights.php:45

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

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

image-rights/image-rights.php 92% from 13 tests

The primary PHP file in "Image Rights" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected291 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP17495216
PO File1141449
CSS14020
JavaScript2026

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin