84% d3-data-fields

Code Review | D3 Data Fields

WordPress plugin D3 Data Fields scored84%from 54 tests.

About plugin

  • Plugin page: d3-data-fields
  • Plugin version: 0.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2023
  • Latest release: Apr 15, 2023
  • Number of updates: 7
  • Update frequency: every 7.4 days
  • Top authors: d3adminnew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.36ms] Passed 4 tests

Server-side resources used by D3 Data Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.97 ▲2.37
Dashboard /wp-admin3.37 ▲0.0647.78 ▼4.83
Posts /wp-admin/edit.php3.42 ▲0.0651.36 ▲0.86
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.82 ▼11.56
Media Library /wp-admin/upload.php3.29 ▲0.0637.51 ▲2.09
D3 Suite /wp-admin/admin.php?page=d3-suite3.2830.05
D3 Data Fields /wp-admin/admin.php?page=d3-data-fields3.2934.93

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for D3 Data Fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲6714.26 ▼0.092.16 ▲0.0444.79 ▲0.45
Dashboard /wp-admin2,237 ▲575.60 ▼0.0285.19 ▼9.5440.43 ▼4.33
Posts /wp-admin/edit.php2,136 ▲332.00 ▼0.0235.76 ▼8.6341.18 ▲6.80
Add New Post /wp-admin/post-new.php1,577 ▲3723.18 ▲0.04633.73 ▼61.2855.59 ▲4.02
Media Library /wp-admin/upload.php1,436 ▲364.32 ▲0.0799.22 ▼3.9346.73 ▼4.32
D3 Suite /wp-admin/admin.php?page=d3-suite8042.0223.9526.01
D3 Data Fields /wp-admin/admin.php?page=d3-data-fields9852.0121.4426.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/d3-data-fields/d3-data-fields.php
    • > /wp-content/plugins/d3-data-fields/templates/d3-submenu-page-content.php
    • > /wp-content/plugins/d3-data-fields/templates/d3-suite-page-content.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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
2 plugin tags: d3-data-fields, d3

d3-data-fields/d3-data-fields.php Passed 13 tests

The entry point to "D3 Data Fields" version 0.1 is a PHP file that has certain tags in its header comment area
66 characters long description:
Create WordPress data fields and allows data access by shortcodes.

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
Good job! No executable or dangerous file extensions detected1,328 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP41013341,293
PO File1111335

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions115
▷ Named functions115100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin