84% wp-really-simple-discovery-link-remover

Code Review | WP Really Simple Discovery Link Remover

WordPress plugin WP Really Simple Discovery Link Remover scored 84% from 54 tests.

About plugin

  • Plugin page: wp-really-simple-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: May 26, 2013
  • Latest release: Aug 2, 2021
  • Number of updates: 29
  • Update frequency: every 103.2 days
  • Top authors: gurudeb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.38ms] Passed 4 tests

Analyzing server-side resources used by WP Really Simple Discovery Link Remover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.75 ▼7.64
Dashboard /wp-admin3.31 ▲0.0046.07 ▼4.20
Posts /wp-admin/edit.php3.36 ▲0.0046.63 ▼10.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.73 ▼2.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.48 ▲4.26

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Really Simple Discovery Link Remover
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲6314.48 ▲0.111.68 ▼0.6540.24 ▼8.63
Dashboard /wp-admin2,203 ▲125.85 ▲1.00108.47 ▲1.9341.24 ▲1.09
Posts /wp-admin/edit.php2,092 ▲61.97 ▼0.0141.82 ▲4.1437.12 ▲2.57
Add New Post /wp-admin/post-new.php1,538 ▲523.31 ▼0.07624.94 ▼36.1454.30 ▼11.20
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0393.59 ▼3.3841.27 ▼1.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/wp-really-simple-discovery-link-remover/wp_really_simple_discovery_link_remover.php:14

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 93% from 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
6 plugin tags: header, discovery, remove, rsd_link, really simple discovery...

wp-really-simple-discovery-link-remover/wp_really_simple_discovery_link_remover.php 85% from 13 tests

"WP Really Simple Discovery Link Remover" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-really-simple-discovery-link-remover.php" instead of "wp_really_simple_discovery_link_remover.php")
  • Description: The description should be shorter than 140 characters (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12113

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin