84% bitcoin-meta-tags

Code Review | Bitcoin Meta Tags

WordPress plugin Bitcoin Meta Tags scored84%from 54 tests.

About plugin

  • Plugin page: bitcoin-meta-tags
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2014
  • Latest release: Mar 1, 2014
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: Koberstein (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,502 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 gracefully, with no errors

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

An overview of server-side resources used by Bitcoin Meta Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.89 ▼3.10
Dashboard /wp-admin3.31 ▲0.0148.67 ▼2.05
Posts /wp-admin/edit.php3.36 ▲0.0152.15 ▲5.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.96 ▼7.08
Media Library /wp-admin/upload.php3.24 ▲0.0136.69 ▲0.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Bitcoin Meta Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.101.60 ▼0.1138.79 ▼7.95
Dashboard /wp-admin2,189 ▲95.62 ▼0.0393.43 ▲0.4037.83 ▼8.55
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0239.58 ▲4.6135.70 ▼1.18
Add New Post /wp-admin/post-new.php1,535 ▲518.10 ▼4.89625.50 ▼77.6476.08 ▲22.31
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.03100.70 ▼9.2942.27 ▼4.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bitcoin-meta-tags/bitcoin-meta-tags.php:32

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)
Everything seems fine on the user side

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
9 plugin tags: tags, extension, bitprops, browser, detection...

bitcoin-meta-tags/bitcoin-meta-tags.php Passed 13 tests

The primary PHP file in "Bitcoin Meta Tags" version 1.0 is used by WordPress to initiate all plugin functionality
93 characters long description:
Adds Bitcoin meta tags to your site.    Donate: 1N6WuXttwKCLH971uZKjMYMtxz1Ta6UQjE

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171949

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin