79% dcs-digital-guides

Code Review | Guides for WordPress and Woocommerce

WordPress plugin Guides for WordPress and Woocommerce scored79%from 54 tests.

About plugin

  • Plugin page: dcs-digital-guides
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 10, 2022
  • Latest release: Apr 25, 2023
  • Number of updates: 7
  • Update frequency: every 24.0 days
  • Top authors: scottybowl2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /237 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: ▲0.07MB] [CPU: ▼0.30ms] Passed 4 tests

An overview of server-side resources used by Guides for WordPress and Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.07 ▲1.48
Dashboard /wp-admin3.37 ▲0.0751.78 ▼3.69
Posts /wp-admin/edit.php3.48 ▲0.1249.19 ▲0.04
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.38 ▲0.98
Media Library /wp-admin/upload.php3.29 ▲0.0740.09 ▲4.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Guides for WordPress and Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲21713.39 ▼1.272.15 ▲0.3738.97 ▼6.68
Dashboard /wp-admin2,345 ▲1604.96 ▼0.89108.27 ▼7.9042.10 ▼3.25
Posts /wp-admin/edit.php2,180 ▲1092.04 ▲0.0242.55 ▲5.3236.68 ▲1.41
Add New Post /wp-admin/post-new.php1,603 ▲8923.15 ▲5.70672.83 ▼24.3458.94 ▲3.33
Media Library /wp-admin/upload.php1,476 ▲884.27 ▲0.06102.56 ▼3.3142.53 ▼2.70

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dcs-digital-guides/admin/partials/dashboard/dcs-welcome-widget.php
    • > /wp-content/plugins/dcs-digital-guides/admin/partials/dcs-digital-guides-admin-display.php
    • > /wp-content/plugins/dcs-digital-guides/public/partials/dcs-digital-guides-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant DCS_DIGITAL_GUIDES_PLUGIN_URL - assumed 'DCS_DIGITAL_GUIDES_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dcs-digital-guides/admin/partials/dashboard/dcs-welcome-widget.php on line 15

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: guides, tutorials

dcs-digital-guides/dcs-digital-guides.php Passed 13 tests

The primary PHP file in "Guides for WordPress and Woocommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
94 characters long description:
Provides contextual video tutorials and guides for WordPress, Woocommerce and popular plugins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin320 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13128558204
CSS211484
JavaScript2205832

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin