94% link-blog

Code Review | Link Blog

WordPress plugin Link Blog scored 94% from 54 tests.

About plugin

  • Plugin page: link-blog
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4
  • WordPress version: 5.8.1
  • First release: Oct 24, 2012
  • Latest release: Aug 3, 2018
  • Number of updates: 11
  • Update frequency: every 191.6 days
  • Top authors: miltonbjones (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 6,463 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Link Blog
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.63 ▲6.61
Dashboard /wp-admin3.07 ▲0.0237.36 ▼18.98
Posts /wp-admin/edit.php3.12 ▲0.0248.45 ▲0.80
Add New Post /wp-admin/post-new.php5.43 ▲0.0096.23 ▼675.33
Media Library /wp-admin/upload.php3.01 ▲0.0135.47 ▼2.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Link Blog: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10716.22 ▲0.7410.81 ▼0.1551.74 ▼10.32
Dashboard /wp-admin2,967 ▲336.05 ▲0.06154.65 ▼15.14120.22 ▼15.40
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.1270.70 ▲0.8799.06 ▼4.02
Add New Post /wp-admin/post-new.php1,546 ▼13718.24 ▼0.47367.33 ▼42.88129.51 ▲11.97
Media Library /wp-admin/upload.php1,807 ▼05.13 ▲0.10162.52 ▲10.00127.83 ▲3.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-blog/link-blog.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
6 plugin tags: tumblog, linkblog, tumblr, tumblelog, link post...

link-blog/link-blog.php Passed 13 tests

The primary PHP file in "Link Blog" version 1.2 is used by WordPress to initiate all plugin functionality
55 characters long description:
Allows you to create a simple link blog with WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1403858

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin