84% denmed-core

Code Review | DenMed Core

WordPress plugin DenMed Core scored84%from 54 tests.

About plugin

  • Plugin page: denmed-core
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: Apr 17, 2022
  • Latest release: May 31, 2022
  • Number of updates: 4
  • Update frequency: every 11.8 days
  • Top authors: mamurjorit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by DenMed Core
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0539.75 ▼19.53
Dashboard /wp-admin3.39 ▲0.0050.25 ▼16.52
Posts /wp-admin/edit.php3.44 ▲0.0448.51 ▼1.89
Add New Post /wp-admin/post-new.php6.10 ▲0.1797.83 ▲1.74
Media Library /wp-admin/upload.php3.31 ▲0.0432.93 ▼4.65
All Testimonials /wp-admin/edit.php?post_type=testimonials3.3636.53
All Doctors /wp-admin/edit.php?post_type=doctors3.3638.25
Add New /wp-admin/post-new.php?post_type=doctors6.0880.99
Add New /wp-admin/post-new.php?post_type=testimonials6.0885.38

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for DenMed Core
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8814.08 ▼0.211.68 ▼0.7446.72 ▲1.66
Dashboard /wp-admin2,249 ▲695.65 ▲0.0795.29 ▲4.4141.70 ▲0.59
Posts /wp-admin/edit.php2,157 ▲571.97 ▼0.0241.43 ▲3.9935.74 ▼0.74
Add New Post /wp-admin/post-new.php1,572 ▲4422.96 ▼0.20701.77 ▲50.9957.66 ▲3.10
Media Library /wp-admin/upload.php1,457 ▲604.24 ▲0.03100.21 ▼6.3742.15 ▼2.31
All Testimonials /wp-admin/edit.php?post_type=testimonials1,1271.9930.3030.79
All Doctors /wp-admin/edit.php?post_type=doctors1,1271.9531.9735.30
Add New /wp-admin/post-new.php?post_type=doctors1,55016.91838.1731.16
Add New /wp-admin/post-new.php?post_type=testimonials6,22622.44746.0730.66

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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)
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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/denmed-core/inc/cpt-doctors.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/denmed-core/templates/front.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: denmed-theme-companion

denmed-core/denmed-companion.php 92% from 13 tests

The entry point to "DenMed Core" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("denmed-core.php" instead of "denmed-companion.php")

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 detected81 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4142081

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin