84% change-links

Code Review | Change Links

WordPress plugin Change Links scored84%from 54 tests.

About plugin

  • Plugin page: change-links
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Jan 28, 2013
  • Latest release: Jan 28, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dan.simmins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Change Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.04 ▲5.23
Dashboard /wp-admin3.33 ▲0.0245.02 ▼2.35
Posts /wp-admin/edit.php3.38 ▲0.0248.03 ▲1.92
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.85 ▼12.47
Media Library /wp-admin/upload.php3.25 ▲0.0237.20 ▲3.69

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
font_color
font_size
font_style
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Change Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.28 ▼1.111.80 ▲0.1142.69 ▲0.47
Dashboard /wp-admin2,244 ▲595.07 ▼0.78113.85 ▲14.1939.04 ▼4.36
Posts /wp-admin/edit.php2,129 ▲402.32 ▲0.2940.17 ▲3.8935.39 ▲0.02
Add New Post /wp-admin/post-new.php1,541 ▲2217.79 ▼5.28683.96 ▲16.0235.95 ▼15.49
Media Library /wp-admin/upload.php1,420 ▲324.43 ▲0.2398.42 ▼0.3241.21 ▼0.07

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • font_color
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • font_style
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • font_size
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/change-links/change_links.php on line 10
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/change-links/change_links.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-links/css.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-links/css.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (This is how the slider will look on you post or page.), #2 (Go to wp-admin/admin.php?page=fonts_options to configure the slider.)
The official readme.txt might help

change-links/change_links.php 92% from 13 tests

"Change Links" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("change-links.php" instead of "change_links.php")

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
No dangerous file extensions were detected112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21321112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.91KB10.39KB▼ 61.40%
screenshot-2.png28.00KB11.50KB▼ 58.95%