84% dp-th-helper

Code Review | dp-th-helper

WordPress plugin dp-th-helper scored84%from 54 tests.

About plugin

  • Plugin page: dp-th-helper
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 1, 2018
  • Latest release: Jul 1, 2018
  • Number of updates: 2
  • Update frequency: every 231.5 days
  • Top authors: dgeditor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.38ms] Passed 4 tests

This is a short check of server-side resources used by dp-th-helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0937.02 ▼2.06
Dashboard /wp-admin3.40 ▲0.0942.41 ▼8.71
Posts /wp-admin/edit.php3.45 ▲0.0942.35 ▼6.68
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.82 ▼4.06
Media Library /wp-admin/upload.php3.32 ▲0.0937.40 ▼0.21
Add New /wp-admin/post-new.php?post_type=faq3.4446.00
Testimonials /wp-admin/edit.php?post_type=testimonials3.3634.70
Add New /wp-admin/post-new.php?post_type=testimonials3.4446.32
FAQ /wp-admin/edit.php?post_type=faq3.3634.74
Add New /wp-admin/post-new.php?post_type=doctors3.4344.58
Services /wp-admin/edit.php?post_type=services3.3634.92
Add New /wp-admin/post-new.php?post_type=services3.4344.89
Doctors /wp-admin/edit.php?post_type=doctors3.3635.05

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for dp-th-helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲14814.35 ▼0.381.84 ▼0.1141.31 ▼1.85
Dashboard /wp-admin2,297 ▲1205.54 ▼0.1382.15 ▼5.2639.66 ▲1.96
Posts /wp-admin/edit.php2,208 ▲1082.00 ▲0.0436.39 ▼3.9238.88 ▲0.08
Add New Post /wp-admin/post-new.php1,618 ▲9023.26 ▼0.00630.18 ▼19.1454.01 ▼2.59
Media Library /wp-admin/upload.php1,502 ▲994.23 ▲0.0997.80 ▼4.3041.89 ▼4.51
Add New /wp-admin/post-new.php?post_type=faq2,3797.55185.9565.58
Testimonials /wp-admin/edit.php?post_type=testimonials1,1781.9632.8430.51
Add New /wp-admin/post-new.php?post_type=testimonials2,3737.62173.4358.83
FAQ /wp-admin/edit.php?post_type=faq1,1781.9829.8030.28
Add New /wp-admin/post-new.php?post_type=doctors2,3877.60161.9058.13
Services /wp-admin/edit.php?post_type=services1,1631.9633.0128.73
Add New /wp-admin/post-new.php?post_type=services2,3867.64156.7555.40
Doctors /wp-admin/edit.php?post_type=doctors1,1631.9332.7830.99

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dp-th-helper/dp-th-helper.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: helper

dp-th-helper/dp-th-helper.php Passed 13 tests

The main file in "dp-th-helper" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Plugin needed for running short tags and other options for DentalPrime Theme.

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
Good job! No executable or dangerous file extensions detected118 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2318118

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected