83% techenabler-header-links-removal

Code Review | TechEnabler Header Links Removal

WordPress plugin TechEnabler Header Links Removal scored83%from 54 tests.

About plugin

  • Plugin page: techenabler-heade...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 31, 2019
  • Latest release: Aug 13, 2020
  • Number of updates: 9
  • Update frequency: every 32.0 days
  • Top authors: techenabler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by TechEnabler Header Links Removal
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0049.06 ▲6.88
Dashboard /wp-admin3.31 ▼0.0452.27 ▼15.62
Posts /wp-admin/edit.php3.36 ▲0.0049.84 ▼0.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.94 ▼14.43
Media Library /wp-admin/upload.php3.23 ▲0.0038.03 ▼4.85

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by TechEnabler Header Links Removal
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.23 ▼0.542.53 ▲0.8246.99 ▲0.89
Dashboard /wp-admin2,224 ▲185.79 ▲0.88101.32 ▼6.7936.22 ▼2.54
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0139.85 ▲1.9532.11 ▼4.55
Add New Post /wp-admin/post-new.php1,540 ▲923.11 ▼0.21628.12 ▼24.4069.61 ▲12.30
Media Library /wp-admin/upload.php1,394 ▼34.25 ▲0.03100.03 ▼20.9847.87 ▼0.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/techenabler-header-links-removal/techenabler-version-removal.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

techenabler-header-links-removal/techenabler-version-removal.php 85% from 13 tests

"TechEnabler Header Links Removal" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("techenabler-header-links-removal.php" instead of "techenabler-version-removal.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 221 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141120
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected