10% linkbuster

Code Review | Link Buster

WordPress plugin Link Buster scored10%from 54 tests.

About plugin

  • Plugin page: linkbuster
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jun 3, 2013
  • Latest release: Jun 3, 2013
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: brianmyrick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /688 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/linkbuster/linkbuster.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; LinkBusterWidget has a deprecated constructor

Server metrics [RAM: ▼1.94MB] [CPU: ▼59.61ms] Passed 4 tests

Analyzing server-side resources used by Link Buster
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.76 ▼36.76
Dashboard /wp-admin2.08 ▼1.275.20 ▼54.88
Posts /wp-admin/edit.php2.08 ▼1.286.26 ▼48.25
Add New Post /wp-admin/post-new.php2.08 ▼3.816.63 ▼98.54
Media Library /wp-admin/upload.php2.08 ▼1.155.44 ▼28.56

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_linkbusterwidget
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Link Buster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.66 ▼0.721.66 ▼0.2645.31 ▼2.10
Dashboard /wp-admin2,209 ▲244.85 ▲0.00105.92 ▼6.6138.44 ▼2.58
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0040.43 ▼1.4634.61 ▼2.08
Add New Post /wp-admin/post-new.php1,514 ▼2017.54 ▼5.45670.33 ▼30.2769.58 ▲7.91
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.03104.58 ▲0.1548.93 ▲1.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/linkbuster/linkbuster.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; LinkBusterWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_linkbusterwidget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/linkbuster/linkbuster.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === linkbuster === )
The official readme.txt might help

linkbuster/linkbuster.php Passed 13 tests

The entry point to "Link Buster" version 0.1 is a PHP file that has certain tags in its header comment area
105 characters long description:
Creates a widget that allows an admin to specify a CSS Path. In that CSS Path all links will be disabled.

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
No dangerous file extensions were detected26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15426

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin