68% custom-more-link-complete

Code Review | Custom More Link Complete

WordPress plugin Custom More Link Complete scored 68% from 54 tests.

About plugin

  • Plugin page: custom-more-link-...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1-3.3.1
  • WordPress version: 5.9.2
  • First release: Feb 10, 2010
  • Latest release: Feb 14, 2012
  • Number of updates: 33
  • Update frequency: every 22.2 days
  • Top authors: conualfy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 30,988 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.23MB] [CPU: ▼328.41ms] Passed 4 tests

This is a short check of server-side resources used by Custom More Link Complete
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0564.44 ▲13.38
Dashboard /wp-admin3.10 ▼0.3117.65 ▼18.28
Posts /wp-admin/edit.php3.10 ▼0.5419.05 ▼19.38
Add New Post /wp-admin/post-new.php3.10 ▼3.8716.99 ▼1,263.64
Media Library /wp-admin/upload.php3.10 ▼0.2017.11 ▼12.33
Custom More Link Complete /wp-admin/options-general.php?page=custom-more-link-complete/custom-more-link-complete.php3.1019.54

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options
dl_custom_more_link_complete_remove_tt_filters

Browser metrics Passed 4 tests

Custom More Link Complete: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲6315.82 ▲0.146.09 ▲0.392.83 ▲0.68
Dashboard /wp-admin2,894 ▲376.08 ▼0.07124.76 ▲3.80208.63 ▲44.23
Posts /wp-admin/edit.php2,692 ▲13.24 ▼0.0167.37 ▲2.89147.69 ▼0.79
Add New Post /wp-admin/post-new.php1,755 ▲9421.92 ▲5.44460.79 ▲30.92219.71 ▼4.57
Media Library /wp-admin/upload.php1,703 ▲55.52 ▲0.04164.46 ▲28.01248.92 ▲9.76
Custom More Link Complete /wp-admin/options-general.php?page=custom-more-link-complete/custom-more-link-complete.php1,2372.3858.00131.09

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 1 option in the database
    • dl_custom_more_link_complete_remove_tt_filters

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=custom-more-link-complete/custom-more-link-complete.php
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=custom-more-link-complete/custom-more-link-complete.php
    • > Notice in wp-content/plugins/custom-more-link-complete/custom-more-link-complete.php+325
    Undefined index: action

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-more-link-complete/custom-more-link-complete.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Custom More Link Complete options page (v1.4x)) image missing
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

custom-more-link-complete/custom-more-link-complete.php 92% from 13 tests

The principal PHP file in "Custom More Link Complete" v. 1.4.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 339 characters long)

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
Good job! No executable or dangerous file extensions detected400 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP175136214
PO File381156186

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems 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%
Functions10
▷ Named functions10100.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 files were detected