84% image-credits-nofollow

Code Review | Image Credits nofollow

WordPress plugin Image Credits nofollow scored84%from 54 tests.

About plugin

  • Plugin page: image-credits-nof...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Sep 23, 2023
  • Number of updates: 39
  • Update frequency: every 84.6 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /6,252 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.00ms] Passed 4 tests

An overview of server-side resources used by Image Credits nofollow
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.99 ▲0.21
Dashboard /wp-admin3.40 ▲0.0549.79 ▼10.64
Posts /wp-admin/edit.php3.51 ▲0.1546.45 ▲7.08
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.51 ▼0.65
Media Library /wp-admin/upload.php3.32 ▲0.0938.91 ▲7.18
Image Credits /wp-admin/options-general.php?page=image-credits3.2931.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Credits nofollow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.35 ▼0.001.83 ▼0.2545.03 ▲1.84
Dashboard /wp-admin2,199 ▲225.60 ▲0.0787.66 ▼14.4638.93 ▼3.06
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0836.38 ▲0.3133.52 ▲3.40
Add New Post /wp-admin/post-new.php1,531 ▲522.98 ▼0.17671.78 ▲34.2351.57 ▲0.76
Media Library /wp-admin/upload.php1,398 ▲44.16 ▲0.0196.92 ▼1.6840.22 ▼1.76
Image Credits /wp-admin/options-general.php?page=image-credits9372.0222.4042.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/image-credits-nofollow/image-credits-nofollow.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

image-credits-nofollow/image-credits-nofollow.php 92% from 13 tests

Analyzing the main PHP file in "Image Credits nofollow" version 1.3
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected498 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP26537307
PO File25371188
CSS1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity22.00
▷ Minimum class complexity6.00
▷ Maximum class complexity38.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG files were detected