78% optimise-link-automation

Code Review | Optimise Link Automation

WordPress plugin Optimise Link Automation scored78%from 54 tests.

About plugin

  • Plugin page: optimise-link-aut...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2021
  • Latest release: Jan 9, 2023
  • Number of updates: 28
  • Update frequency: every 22.4 days
  • Top authors: optimisemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.31ms] Passed 4 tests

An overview of server-side resources used by Optimise Link Automation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.27 ▼10.96
Dashboard /wp-admin3.32 ▲0.0248.06 ▼5.12
Posts /wp-admin/edit.php3.37 ▲0.0248.88 ▼1.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.16 ▼12.00
Media Library /wp-admin/upload.php3.24 ▲0.0242.00 ▲3.23
Optimise Linkables /wp-admin/options-general.php?page=optimise-la-plugin3.1935.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Optimise Link Automation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.15 ▼1.222.34 ▲0.4243.74 ▲0.27
Dashboard /wp-admin2,225 ▲225.85 ▲0.94101.49 ▼10.7836.91 ▲0.45
Posts /wp-admin/edit.php2,101 ▲12.03 ▲0.0036.49 ▲1.5634.12 ▼7.36
Add New Post /wp-admin/post-new.php1,548 ▲323.51 ▲0.17613.28 ▼78.8595.64 ▲33.53
Media Library /wp-admin/upload.php1,401 ▲14.20 ▼0.01112.22 ▲5.0748.45 ▲3.08
Optimise Linkables /wp-admin/options-general.php?page=optimise-la-plugin8432.0128.2029.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=optimise-la-plugin
    • > Notice in wp-content/plugins/optimise-link-automation/optimise-link-automation.php+65
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/optimise-link-automation/optimise-link-automation.php:69

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: affiliate, optimise, tracking, link automation, optimise media

optimise-link-automation/optimise-link-automation.php 92% from 13 tests

The principal PHP file in "Optimise Link Automation" v. 1.0.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131844
SVG10133

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
aid-location.png7.27KB6.71KB▼ 7.69%