84% dcg-display-plugin-data

Code Review | DCG Display Plugin Data (from wordpress.org)

WordPress plugin DCG Display Plugin Data (from wordpress.org) scored 84% from 54 tests.

About plugin

  • Plugin page: dcg-display-plugi...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2015
  • Latest release: May 19, 2023
  • Number of updates: 94
  • Update frequency: every 30.7 days
  • Top authors: dipakcg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,657 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.06ms] Passed 4 tests

Server-side resources used by DCG Display Plugin Data (from wordpress.org)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.41 ▼6.65
Dashboard /wp-admin3.31 ▲0.0045.16 ▼2.56
Posts /wp-admin/edit.php3.36 ▲0.0051.00 ▼1.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.74 ▼17.68
Media Library /wp-admin/upload.php3.23 ▲0.0035.41 ▲1.91

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DCG Display Plugin Data (from wordpress.org)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.39 ▼1.234.62 ▲2.6242.37 ▼2.32
Dashboard /wp-admin2,206 ▲184.84 ▼0.0599.83 ▼14.8142.20 ▲1.31
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0239.52 ▼3.0335.91 ▲0.57
Add New Post /wp-admin/post-new.php1,514 ▼1617.90 ▼0.39663.76 ▲54.4250.94 ▼3.82
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.1295.53 ▼7.1639.98 ▼5.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/dcg-display-plugin-data/dcg-display-plugin-data.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

dcg-display-plugin-data/dcg-display-plugin-data.php Passed 13 tests

This is the main PHP file of "DCG Display Plugin Data (from wordpress.org)" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Display plugin data (from wordpress.org) into pages / posts using simple shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161275

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/rating_stars.png1.97KB1.07KB▼ 45.82%