83% easy-dogecoin-gateway

Code Review | Easy Dogecoin Gateway

WordPress plugin Easy Dogecoin Gateway scored83%from 54 tests.

About plugin

  • Plugin page: easy-dogecoin-gat...
  • Plugin version: 69.420.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9
  • WordPress version: 6.3.1
  • First release: May 6, 2022
  • Latest release: Sep 4, 2022
  • Number of updates: 27
  • Update frequency: every 4.5 days
  • Top authors: inevitable360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.54ms] Passed 4 tests

A check of server-side resources used by Easy Dogecoin Gateway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.22 ▲1.19
Dashboard /wp-admin3.35 ▲0.0446.16 ▼8.14
Posts /wp-admin/edit.php3.40 ▲0.0451.46 ▼2.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.72 ▼8.50
Media Library /wp-admin/upload.php3.27 ▲0.0438.22 ▲2.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Dogecoin Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.002.07 ▲0.2747.20 ▲5.62
Dashboard /wp-admin2,189 ▲155.58 ▲0.0089.74 ▼5.1640.75 ▼5.66
Posts /wp-admin/edit.php2,100 ▼72.10 ▲0.0840.30 ▲4.0637.08 ▲3.77
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.52681.59 ▼8.6052.19 ▼2.14
Media Library /wp-admin/upload.php1,403 ▲64.13 ▼0.0098.19 ▼4.9247.62 ▲5.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/easy-dogecoin-gateway/dogecoin.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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-dogecoin-gateway === )
The official readme.txt is a good inspiration

easy-dogecoin-gateway/dogecoin.php 85% from 13 tests

"Easy Dogecoin Gateway" version 69.420.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-dogecoin-gateway.php" instead of "dogecoin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14463144
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
4 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/sodoge.png25.75KB9.68KB▼ 62.41%
assets/screenshot-1.png109.71KB33.67KB▼ 69.31%
assets/twitter.png2.16KB1.91KB▼ 11.27%
assets/mydoge.png96.31KB10.60KB▼ 88.99%