84% bookmark-card

Code Review | Bookmark Card

WordPress plugin Bookmark Card scored84%from 54 tests.

About plugin

  • Plugin page: bookmark-card
  • Plugin version: 2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2020
  • Latest release: Nov 26, 2022
  • Number of updates: 6
  • Update frequency: every 132.2 days
  • Top authors: Mamaduka (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /4,984 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Bookmark Card
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.12 ▲2.22
Dashboard /wp-admin3.32 ▲0.0243.44 ▼7.96
Posts /wp-admin/edit.php3.37 ▲0.0244.76 ▼0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.39 ▼14.63
Media Library /wp-admin/upload.php3.24 ▲0.0234.18 ▼0.65

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Bookmark Card: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.21 ▼1.051.72 ▲0.0241.70 ▲1.81
Dashboard /wp-admin2,206 ▲186.05 ▲0.15107.93 ▼7.7840.50 ▼3.50
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0339.22 ▲4.0836.18 ▲4.81
Add New Post /wp-admin/post-new.php6,354 ▲4,83427.97 ▲4.91873.58 ▲284.0954.02 ▲5.71
Media Library /wp-admin/upload.php1,388 ▼04.15 ▲0.0295.55 ▼14.9343.32 ▼0.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Mamaduka\\BookmarkCard\\add_action() in wp-content/plugins/bookmark-card/bookmark-card.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can look at the official readme.txt

bookmark-card/bookmark-card.php Passed 13 tests

"Bookmark Card" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
43 characters long description:
Turn any URL into a beautiful preview card.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin85 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSON10075
PHP22197
CSS2002
JavaScript1001

PHP code Passed 2 tests

An short overview of 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.00
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%
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
There were not PNG files found in your plugin