73% fix-content-links

Code Review | Fix Content Links

WordPress plugin Fix Content Links scored 73% from 54 tests.

About plugin

  • Plugin page: fix-content-links
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2019
  • Latest release: Jan 13, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: Fleuv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 613 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.30MB] [CPU: ▲0.45ms] Passed 4 tests

Analyzing server-side resources used by Fix Content Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2140.74 ▼3.02
Dashboard /wp-admin3.63 ▲0.3350.79 ▲2.50
Posts /wp-admin/edit.php3.68 ▲0.3353.09 ▲3.11
Add New Post /wp-admin/post-new.php6.21 ▲0.33101.31 ▼0.00
Media Library /wp-admin/upload.php3.55 ▲0.3338.54 ▲2.32
Fix Content Links /wp-admin/options-general.php?page=fix-content-links3.4634.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Fix Content Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.72 ▼0.571.61 ▼0.7142.62 ▼2.56
Dashboard /wp-admin2,210 ▲255.87 ▼0.14101.64 ▼18.1640.73 ▲0.08
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0236.61 ▼5.3430.38 ▼7.42
Add New Post /wp-admin/post-new.php1,548 ▲1218.36 ▼4.82627.62 ▼52.7352.89 ▼0.60
Media Library /wp-admin/upload.php1,386 ▼24.26 ▲0.0399.73 ▼10.5941.14 ▼5.43
Fix Content Links /wp-admin/options-general.php?page=fix-content-links8222.0423.5228.16

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-includes/option.php+2520
    Trying to access array offset on value of type null
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fix-content-links/vendor/lsvh/dynamic-wp-config/tests/InitTest.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

fix-content-links/index.php 85% from 13 tests

The main PHP file in "Fix Content Links" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fix-content-links.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,330 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP283216321,184
JSON30090
Markdown132056

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces4
Traits1
Classes17
▷ Abstract classes317.65%
▷ Concrete classes1482.35%
▷ Final classes17.14%
Methods128
▷ Static methods2015.62%
▷ Public methods10380.47%
▷ Protected methods21.56%
▷ Private methods2317.97%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin