84% backlink-day-counter

Code Review | Backlink Day Counter

WordPress plugin Backlink Day Counter scored84%from 54 tests.

About plugin

  • Plugin page: backlink-day-counter
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 5
  • Update frequency: every 8.4 days
  • Top authors: iltekin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Backlink Day Counter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.53 ▲2.99
Dashboard /wp-admin3.32 ▲0.0160.54 ▲8.70
Posts /wp-admin/edit.php3.37 ▲0.0152.25 ▼1.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.03 ▼8.23
Media Library /wp-admin/upload.php3.24 ▲0.0136.77 ▲0.16
Backlink Day Counter Settings /wp-admin/options-general.php?page=bdc-settings3.2138.86

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Backlink Day Counter: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.31 ▼1.249.12 ▲7.2042.62 ▼2.57
Dashboard /wp-admin2,202 ▲255.62 ▲0.0193.65 ▼8.5944.91 ▲2.24
Posts /wp-admin/edit.php2,104 ▲71.99 ▼0.0137.41 ▼0.0335.07 ▼0.92
Add New Post /wp-admin/post-new.php1,529 ▲123.14 ▼0.30679.70 ▼9.3366.78 ▲16.63
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0094.32 ▼15.7342.41 ▼3.84
Backlink Day Counter Settings /wp-admin/options-general.php?page=bdc-settings8241.9925.3025.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backlink-day-counter/backlink-day-counter.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
Attributes that need to be fixed: You can take inspiration from this readme.txt

backlink-day-counter/backlink-day-counter.php Passed 13 tests

The main PHP file in "Backlink Day Counter" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
115 characters long description:
By using [link] shortcode after backlink, Administrators can see remaining days of a sponsored backlink next to it.

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
No dangerous file extensions were detected242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14413190
CSS17047
JavaScript1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin