83% boxcoin-cloud

Code Review | Boxcoin

WordPress plugin Boxcoin scored 83% from 54 tests.

About plugin

  • Plugin page: boxcoin-cloud
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2022
  • Latest release: Jan 27, 2023
  • Number of updates: 5
  • Update frequency: every 15.4 days
  • Top authors: boxcoin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 731 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼18.71ms] Passed 4 tests

Analyzing server-side resources used by Boxcoin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.48 ▼19.22
Dashboard /wp-admin3.35 ▲0.0546.01 ▼2.01
Posts /wp-admin/edit.php3.40 ▲0.0548.57 ▲3.58
Add New Post /wp-admin/post-new.php3.23 ▼2.6537.53 ▼51.02
Media Library /wp-admin/upload.php3.28 ▲0.0531.16 ▼2.60
Boxcoin /wp-admin/options-general.php?page=boxcoin-cloud3.2436.42

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Boxcoin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▼0.201.83 ▼0.6941.88 ▼29.52
Dashboard /wp-admin2,210 ▲224.85 ▼1.01107.85 ▼7.0444.39 ▼1.19
Posts /wp-admin/edit.php2,096 ▲102.03 ▼0.0239.91 ▲3.9236.58 ▲4.08
Add New Post /wp-admin/post-new.php1,536 ▲823.44 ▲5.08573.73 ▼43.0450.63 ▼2.25
Media Library /wp-admin/upload.php1,395 ▲104.29 ▲0.0798.45 ▼4.1743.71 ▼0.69
Boxcoin /wp-admin/options-general.php?page=boxcoin-cloud9002.0526.4727.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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 | 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/boxcoin-cloud/index.php:15

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Dashboard), #2 (Checkout), #3 (Settings)
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

boxcoin-cloud/index.php 92% from 13 tests

The entry point to "Boxcoin" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("boxcoin-cloud.php" instead of "index.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 plugin214 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11511202
CSS13011
Markdown1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1487.50%
▷ Anonymous functions212.50%
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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png3.90KB3.99KB0.00%
assets/banner-772x250.png4.05KB4.37KB0.00%