84% linkblog-by-lucy

Code Review | LinkBlog by Lucy

WordPress plugin LinkBlog by Lucy scored84%from 54 tests.

About plugin

  • Plugin page: linkblog-by-lucy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2015
  • Latest release: Jun 16, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: lucymtc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /762 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.55ms] Passed 4 tests

This is a short check of server-side resources used by LinkBlog by Lucy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.14 ▼0.56
Dashboard /wp-admin3.32 ▲0.0244.96 ▼4.01
Posts /wp-admin/edit.php3.43 ▲0.0846.66 ▼1.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.35 ▼21.60
Media Library /wp-admin/upload.php3.24 ▲0.0233.95 ▼3.41
LinkkBlog /wp-admin/options-general.php?page=lbbylu-options3.2431.66

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for LinkBlog by Lucy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.26 ▼1.491.61 ▼0.5040.98 ▼11.62
Dashboard /wp-admin2,212 ▲244.85 ▼1.17109.68 ▼5.0541.18 ▼4.54
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0038.21 ▲1.1934.82 ▼2.40
Add New Post /wp-admin/post-new.php1,521 ▼017.51 ▼5.62676.59 ▲1.7156.16 ▼2.24
Media Library /wp-admin/upload.php1,397 ▲64.18 ▼0.0197.16 ▲1.0442.66 ▼3.39
LinkkBlog /wp-admin/options-general.php?page=lbbylu-options8482.0321.4628.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/linkblog-by-lucy/includes/settings-form.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: linkblog

linkblog-by-lucy/linkblog-by-lucy.php Passed 13 tests

The primary PHP file in "LinkBlog by Lucy" version 1.0 is used by WordPress to initiate all plugin functionality
43 characters long description:
Convert your WordPress blog into a LinkBlog

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 plugin202 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5148142197
CSS1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods19
▷ Static methods15.26%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected