84% class-id-for-wp-links

Code Review | Attributes Class ID Rel Title for WP-links

WordPress plugin Attributes Class ID Rel Title for WP-links scored84%from 54 tests.

About plugin

  • Plugin page: class-id-for-wp-l...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2017
  • Latest release: Feb 6, 2017
  • Number of updates: 23
  • Update frequency: every 1.2 days
  • Top authors: hokku (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /706 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Attributes Class ID Rel Title for WP-links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.46 ▼1.34
Dashboard /wp-admin3.32 ▲0.0150.01 ▲0.76
Posts /wp-admin/edit.php3.37 ▲0.0146.28 ▼1.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.43 ▼23.42
Media Library /wp-admin/upload.php3.24 ▲0.0133.94 ▼4.71

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Attributes Class ID Rel Title for WP-links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11713.26 ▼1.042.02 ▲0.3442.63 ▼1.64
Dashboard /wp-admin2,241 ▲504.89 ▼1.16101.69 ▲2.1946.28 ▲5.79
Posts /wp-admin/edit.php2,096 ▲72.07 ▲0.0237.39 ▼2.6532.61 ▼3.48
Add New Post /wp-admin/post-new.php1,556 ▲2423.28 ▲5.06600.75 ▼47.9966.54 ▲9.48
Media Library /wp-admin/upload.php1,395 ▲74.29 ▲0.05101.40 ▼4.4941.72 ▼3.83

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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)
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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/class-id-for-wp-links/wp-class-id-links.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: class link, custom link class, link attributes, title link, class id links...

class-id-for-wp-links/wp-class-id-links.php 92% from 13 tests

The primary PHP file in "Attributes Class ID Rel Title for WP-links" version 1.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("class-id-for-wp-links.php" instead of "wp-class-id-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected633 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin