68% automagicalinks

Code Review | Automagicalinks

WordPress plugin Automagicalinks scored68%from 54 tests.

About plugin

  • Plugin page: automagicalinks
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Jul 23, 2018
  • Latest release: Jul 29, 2018
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: saulbaizman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /572 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.96MB] [CPU: ▼44.41ms] Passed 4 tests

Server-side resources used by Automagicalinks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0335.88 ▼3.12
Dashboard /wp-admin3.00 ▼0.3524.35 ▼42.08
Posts /wp-admin/edit.php3.00 ▼0.3623.81 ▼28.78
Add New Post /wp-admin/post-new.php3.00 ▼2.8920.97 ▼84.68
Media Library /wp-admin/upload.php3.00 ▼0.2319.95 ▼22.08
Automagicalinks /wp-admin/options-general.php?page=automagicalinks3.0024.67

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
automagicalinks_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automagicalinks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.70 ▲0.431.73 ▼0.2244.71 ▼1.02
Dashboard /wp-admin2,202 ▲225.59 ▼0.0993.79 ▼5.6740.85 ▼0.50
Posts /wp-admin/edit.php2,101 ▼22.00 ▲0.0538.78 ▼0.2335.71 ▼0.36
Add New Post /wp-admin/post-new.php1,529 ▲323.45 ▲0.33651.14 ▼21.6559.72 ▲3.29
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0498.36 ▼16.4744.95 ▼1.16
Automagicalinks /wp-admin/options-general.php?page=automagicalinks1,1212.0027.4031.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=automagicalinks
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
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 register_activation_hook() in wp-content/plugins/automagicalinks/automagicalinks.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: links

automagicalinks/automagicalinks.php Passed 13 tests

"Automagicalinks" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Automagically convert text to internal links on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin323 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211542323

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin