83% dbs-parspal-edd

Code Review | DBS-EDD-ParspalGateway

WordPress plugin DBS-EDD-ParspalGateway scored83%from 54 tests.

About plugin

  • Plugin page: dbs-parspal-edd
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1+
  • WordPress version: 6.3.1
  • First release: Jul 25, 2014
  • Latest release: Jan 10, 2015
  • Number of updates: 6
  • Update frequency: every 28.2 days
  • Top authors: DBStheme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,923 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
Installer ran successfully

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

A check of server-side resources used by DBS-EDD-ParspalGateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.58 ▲0.94
Dashboard /wp-admin3.35 ▲0.0445.26 ▼2.84
Posts /wp-admin/edit.php3.40 ▲0.0443.91 ▼5.64
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.69 ▼19.77
Media Library /wp-admin/upload.php3.27 ▲0.0434.48 ▲1.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for DBS-EDD-ParspalGateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼0.831.66 ▼0.1643.76 ▲0.81
Dashboard /wp-admin2,209 ▲185.85 ▲0.98101.32 ▼4.8940.02 ▼2.03
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0339.00 ▲1.4931.16 ▼0.26
Add New Post /wp-admin/post-new.php1,513 ▼622.65 ▼0.70678.78 ▲25.0858.34 ▼6.59
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.1296.63 ▼16.0642.52 ▼7.47

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dbs-parspal-edd/DBS-EDD-Parspal.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tested up to: Version not formatted correctly
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === dbs-parspal-edd === )
You can look at the official readme.txt

dbs-parspal-edd/DBS-EDD-Parspal.php 92% from 13 tests

"DBS-EDD-ParspalGateway" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("dbs-parspal-edd.php" instead of "DBS-EDD-Parspal.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
Success! There were no dangerous files found in this plugin178 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2528178

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin