83% dakpion

Code Review | Dakpion

WordPress plugin Dakpion scored83%from 54 tests.

About plugin

  • Plugin page: dakpion
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 26, 2019
  • Latest release: Nov 26, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: acepressbymicaore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /462 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼0.65ms] Passed 4 tests

A check of server-side resources used by Dakpion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.74 ▲4.14
Dashboard /wp-admin3.36 ▲0.0545.30 ▼4.40
Posts /wp-admin/edit.php3.47 ▲0.1147.19 ▲1.06
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.19 ▲1.69
Media Library /wp-admin/upload.php3.28 ▲0.0535.54 ▼0.96

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Dakpion
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.67 ▼0.565.77 ▲3.9747.54 ▲0.01
Dashboard /wp-admin2,210 ▲195.84 ▼0.04105.25 ▲6.4339.36 ▲0.59
Posts /wp-admin/edit.php2,093 ▲72.02 ▲0.0139.53 ▲2.8136.05 ▲0.94
Add New Post /wp-admin/post-new.php1,518 ▼1523.07 ▼0.01646.82 ▼39.0254.61 ▼1.23
Media Library /wp-admin/upload.php1,392 ▲14.26 ▼0.0195.24 ▼11.1443.10 ▼1.32

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dakpion/admin/partials/dakpion-admin-display.php
    • > /wp-content/plugins/dakpion/public/partials/dakpion-public-display.php

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


Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: A description for screenshot #1 is missing in dakpion/assets to your readme.txt
  • Requires at least: Version format is invalid
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === dakpion === )
You can look at the official readme.txt

dakpion/dakpion.php Passed 13 tests

The principal PHP file in "Dakpion" v. 1.0.0 is loaded by WordPress automatically on each request
37 characters long description:
Easiest way to create a contact form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin218 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

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.11
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin