84% domain-for-sale

Code Review | Domain For Sale, Domain appraisal, Domain auction, Domain marketplace - Best Domain For sale Plugin for WordPress

WordPress plugin Domain For Sale, Domain appraisal, Domain auction, Domain marketplace - Best Domain For sale Plugin for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: domain-for-sale
  • Plugin version: 1.4.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Nov 27, 2023
  • Number of updates: 32
  • Update frequency: every 9.0 days
  • Top authors: themeatelier (96.88%)fixolab (6.25%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.32MB] [CPU: ▲2.20ms] Passed 4 tests

This is a short check of server-side resources used by Domain For Sale, Domain appraisal, Domain auction, Domain marketplace - Best Domain For sale Plugin for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.86 ▲1.3948.24 ▲8.09
Dashboard /wp-admin4.67 ▲1.3259.36 ▼4.16
Posts /wp-admin/edit.php4.73 ▲1.3659.00 ▲7.01
Add New Post /wp-admin/post-new.php7.19 ▲1.3095.16 ▼2.16
Media Library /wp-admin/upload.php4.53 ▲1.3049.22 ▲16.52

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 129 new files
Database: no new tables, 7 new options
New WordPress options
dfs-opt
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Domain For Sale, Domain appraisal, Domain auction, Domain marketplace - Best Domain For sale Plugin for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11614.78 ▲0.441.82 ▲0.2149.64 ▲8.51
Dashboard /wp-admin2,247 ▲705.57 ▼0.0896.07 ▼2.1881.82 ▲36.17
Posts /wp-admin/edit.php2,171 ▲712.11 ▲0.1640.10 ▼0.7837.16 ▼0.45
Add New Post /wp-admin/post-new.php1,592 ▲6623.75 ▲0.30737.91 ▲31.0557.18 ▲1.54
Media Library /wp-admin/upload.php1,467 ▲674.16 ▼0.0896.36 ▼2.7069.12 ▲24.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • dfs-opt
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 get_option() in wp-content/plugins/domain-for-sale/public/partials/domain-for-sale-public-display.php:1

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (31 tag instead of maximum 10)
You can take inspiration from this readme.txt

domain-for-sale/domain-for-sale.php Passed 13 tests

The main PHP file in "Domain For Sale, Domain appraisal, Domain auction, Domain marketplace - Best Domain For sale Plugin for WordPress" ver. 1.4.13 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Creative and professional auction and domain for sale WordPress Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin38,942 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
CSS122,61022421,503
SVG5009,554
PHP741,7221,6557,698
PO File16567162
JavaScript533325

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity18.95
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity5.52
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes00.00%
Methods250
▷ Static methods3012.00%
▷ Public methods22891.20%
▷ Protected methods52.00%
▷ Private methods176.80%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
9 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/color-2.png3.40KB0.13KB▼ 96.27%
public/images/color-4.png3.40KB0.13KB▼ 96.27%
admin/assets/images/color-3.png3.40KB0.13KB▼ 96.27%
public/images/color-2.png3.40KB0.13KB▼ 96.27%
admin/assets/images/color-4.png3.40KB0.13KB▼ 96.27%