84% blogroll-block

Code Review | Blogroll Block

WordPress plugin Blogroll Block scored 84% from 54 tests.

About plugin

  • Plugin page: blogroll-block
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: May 26, 2023
  • Number of updates: 12
  • Update frequency: every 68.3 days
  • Top authors: tw2113 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,125 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.18ms] Passed 4 tests

Analyzing server-side resources used by Blogroll Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.72 ▲4.66
Dashboard /wp-admin3.34 ▲0.0346.50 ▼3.10
Posts /wp-admin/edit.php3.39 ▲0.0343.38 ▼0.95
Add New Post /wp-admin/post-new.php5.92 ▲0.03119.40 ▼1.47
Media Library /wp-admin/upload.php3.26 ▲0.0334.20 ▼7.21
Add New /wp-admin/link-add.php3.2434.97
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.2533.54
All Links /wp-admin/link-manager.php3.2839.23

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_links
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Blogroll Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲12713.24 ▼1.062.08 ▼0.4649.51 ▼21.29
Dashboard /wp-admin2,240 ▲554.88 ▼0.94115.50 ▼3.1041.77 ▼3.55
Posts /wp-admin/edit.php2,123 ▲342.00 ▼0.0539.74 ▲1.0138.79 ▲4.68
Add New Post /wp-admin/post-new.php6,433 ▲4,91419.42 ▼3.341,057.49 ▲350.9865.49 ▼17.30
Media Library /wp-admin/upload.php1,416 ▲284.25 ▲0.06100.65 ▼40.3747.90 ▼23.63
Add New /wp-admin/link-add.php1,6472.2374.6239.77
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,3022.1430.7935.08
All Links /wp-admin/link-manager.php1,0772.0732.1340.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_links
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tw2113_blogroll_block\\add_action() in wp-content/plugins/blogroll-block/blogroll-block.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: block

blogroll-block/blogroll-block.php Passed 13 tests

The principal PHP file in "Blogroll Block" v. 1.3.3 is loaded by WordPress automatically on each request
33 characters long description:
WordPress Blogroll, block edition

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin137 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON100100
PHP281434
CSS2002
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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
Namespaces1
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%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin