84% link-to-button

Code Review | Link To Button

WordPress plugin Link To Button scored84%from 54 tests.

About plugin

  • Plugin page: link-to-button
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 21, 2020
  • Latest release: Oct 21, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: lightning229 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Link To Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.58 ▲2.96
Dashboard /wp-admin3.31 ▲0.0151.62 ▼0.50
Posts /wp-admin/edit.php3.37 ▲0.0146.83 ▼5.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.97 ▼13.46
Media Library /wp-admin/upload.php3.24 ▲0.0134.85 ▼3.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Link To Button
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.54 ▼0.051.72 ▼1.3143.00 ▼0.66
Dashboard /wp-admin2,195 ▲185.51 ▼0.0383.79 ▼16.8241.01 ▼23.64
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0034.70 ▼4.9935.02 ▼2.66
Add New Post /wp-admin/post-new.php1,526 ▼222.99 ▼0.18676.98 ▲9.1562.18 ▲1.40
Media Library /wp-admin/upload.php1,400 ▲64.24 ▼0.03100.84 ▼2.9544.21 ▼1.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/link-to-button/link-to-button.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

link-to-button/link-to-button.php Passed 13 tests

The main PHP file in "Link To Button" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Add button style to a tag link in tinymce editor like Bootstrap 4 Button

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
Everything looks great! No dangerous files found in this plugin251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110117
CSS200111
PHP191323

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions4
▷ Named functions4100.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