93% a-cryptocurrency-shortcode

Code Review | a-cryptocurrency-shortcode

WordPress plugin a-cryptocurrency-shortcode scored 93% from 54 tests.

About plugin

  • Plugin page: a-cryptocurrency-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.3-5.0.3
  • WordPress version: 5.9.2
  • First release: Nov 17, 2018
  • Latest release: Feb 4, 2019
  • Number of updates: 3
  • Update frequency: every 26.7 days
  • Top authors: andreyshchedrin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 6,366 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by a-cryptocurrency-shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0260.52 ▲10.18
Dashboard /wp-admin3.43 ▲0.0232.73 ▼0.37
Posts /wp-admin/edit.php3.66 ▲0.0236.15 ▼0.94
Add New Post /wp-admin/post-new.php6.90 ▼0.0891.45 ▼1,187.84
Media Library /wp-admin/upload.php3.31 ▲0.0124.76 ▼1.05

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: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for a-cryptocurrency-shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,765 ▲1115.81 ▼0.195.87 ▲0.072.47 ▼0.70
Dashboard /wp-admin2,892 ▲346.09 ▼0.05120.16 ▼17.86157.50 ▼5.72
Posts /wp-admin/edit.php2,688 ▼33.23 ▲0.0161.59 ▼10.16142.25 ▼12.15
Add New Post /wp-admin/post-new.php1,661 ▼5515.51 ▼5.82413.97 ▼56.12156.78 ▼5.28
Media Library /wp-admin/upload.php1,698 ▲35.51 ▼0.00142.84 ▼3.29187.95 ▼4.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/a-cryptocurrency-shortcode/acs91-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a-cryptocurrency-shortcode/acs91-styles.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/a-cryptocurrency-shortcode/a-cryptocurrency-shortcode.php:13

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 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: btc, ethereum, cryptocurrency

a-cryptocurrency-shortcode/a-cryptocurrency-shortcode.php 69% from 13 tests

"a-cryptocurrency-shortcode" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Version: The plugin version is required
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin70 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3211667
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin