84% simple-crypto-shortcodes

Code Review | Simple Crypto Shortcodes

WordPress plugin Simple Crypto Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: simple-crypto-sho...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2021
  • Latest release: Sep 13, 2022
  • Number of updates: 8
  • Update frequency: every 45.5 days
  • Top authors: stefanristic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.74ms] Passed 4 tests

Server-side resources used by Simple Crypto Shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.91 ▲0.03
Dashboard /wp-admin3.38 ▲0.0748.21 ▼17.78
Posts /wp-admin/edit.php3.43 ▲0.0748.48 ▼1.76
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.50 ▼7.43
Media Library /wp-admin/upload.php3.30 ▲0.0739.40 ▲3.03

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
scs_cache_time
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Crypto Shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.33 ▲0.131.78 ▼0.4744.44 ▲0.15
Dashboard /wp-admin2,206 ▲265.56 ▼0.1088.92 ▼8.8842.29 ▲3.90
Posts /wp-admin/edit.php2,117 ▲172.00 ▼0.0342.24 ▲3.9737.94 ▲2.21
Add New Post /wp-admin/post-new.php1,538 ▲323.04 ▲4.71673.97 ▲9.0453.23 ▼22.49
Media Library /wp-admin/upload.php1,414 ▲144.21 ▼0.13105.52 ▲1.5545.22 ▲0.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • scs_cache_time
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-crypto-shortcodes/simple_crypto_shortcodes.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: bitcoin, cryptocurrency prices, bitcoin data, cryptocurrency data, cryptocurrency...

simple-crypto-shortcodes/simple_crypto_shortcodes.php 85% from 13 tests

The main PHP file in "Simple Crypto Shortcodes" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-crypto-shortcodes.php" instead of "simple_crypto_shortcodes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin311 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12012311

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin