84% resell-gd

Code Review | Resell GD

WordPress plugin Resell GD scored84%from 54 tests.

About plugin

  • Plugin page: resell-gd
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2015
  • Latest release: Nov 18, 2019
  • Number of updates: 22
  • Update frequency: every 68.3 days
  • Top authors: lcwakeman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼1.43ms] Passed 4 tests

Analyzing server-side resources used by Resell GD
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2146.47 ▲9.59
Dashboard /wp-admin3.55 ▲0.2150.56 ▼9.84
Posts /wp-admin/edit.php3.67 ▲0.3152.12 ▲6.62
Add New Post /wp-admin/post-new.php6.14 ▲0.2591.31 ▼12.07
Media Library /wp-admin/upload.php3.48 ▲0.2545.53 ▲12.56
Add New /wp-admin/post-new.php?post_type=gd_product3.6153.70
GoDaddy Products /wp-admin/edit.php?post_type=gd_product3.5345.58
Shortcode Generator /wp-admin/edit.php?post_type=gd_product&page=gd_product-shortcode-generator3.4538.73
Pricing Export /wp-admin/edit.php?post_type=gd_product&page=gd_product-export-prices3.4437.93
Pricing Import /wp-admin/edit.php?post_type=gd_product&page=gd_product-import-prices3.4536.04
Product Import /wp-admin/edit.php?post_type=gd_product&page=gd_product-import-products3.4536.98
Resell GD /wp-admin/options-general.php?page=godday_options3.4436.93

Server storage [IO: ▲5.78MB] [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: 68 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_godaddysearch
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_godaddyhosting

Browser metrics Passed 4 tests

This is an overview of browser requirements for Resell GD
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲19113.63 ▼1.028.34 ▲6.6036.38 ▼7.45
Dashboard /wp-admin2,252 ▲635.85 ▼0.06108.76 ▲5.4062.74 ▲20.55
Posts /wp-admin/edit.php2,141 ▲522.01 ▲0.0138.34 ▲2.3234.77 ▼0.72
Add New Post /wp-admin/post-new.php1,562 ▲4323.38 ▲0.19823.50 ▲170.1755.71 ▲0.91
Media Library /wp-admin/upload.php1,431 ▲464.22 ▼0.0497.67 ▼6.3073.58 ▲30.75
Add New /wp-admin/post-new.php?post_type=gd_product2,7037.77191.37157.67
GoDaddy Products /wp-admin/edit.php?post_type=gd_product1,2041.9534.7729.26
Shortcode Generator /wp-admin/edit.php?post_type=gd_product&page=gd_product-shortcode-generator8492.0523.5428.32
Pricing Export /wp-admin/edit.php?post_type=gd_product&page=gd_product-export-prices8642.0622.7425.01
Pricing Import /wp-admin/edit.php?post_type=gd_product&page=gd_product-import-prices8372.2125.4728.25
Product Import /wp-admin/edit.php?post_type=gd_product&page=gd_product-import-products9652.0522.0024.24
Resell GD /wp-admin/options-general.php?page=godday_options8632.2027.0424.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_godaddysearch
    • widget_godaddyhosting

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 | 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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/resell-gd/resell-gd.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/resell-gd/includes/gd_widget_hosting.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/resell-gd/includes/gd_widget.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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: domain name searches, resell gd, storefront interface

resell-gd/resell-gd.php Passed 13 tests

The main file in "Resell GD" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
129 characters long description:
GoDaddy Reseller Plugin - Allow Godaddy resellers to redirect product sales and perform domain name search through their reseller

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected145,454 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
HTML250608143,011
PHP104939002,357
CSS16048
JSON240024
JavaScript11114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity36.64
▷ Minimum class complexity1.00
▷ Maximum class complexity252.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods105
▷ Static methods76.67%
▷ Public methods7874.29%
▷ Protected methods43.81%
▷ Private methods2321.90%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants1578.95%
▷ Class constants421.05%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/GoDaddy.png1.00KB0.88KB▼ 11.46%