90% d3gb

Code Review | D3GB

WordPress plugin D3GB scored90%from 54 tests.

About plugin

  • Plugin page: d3gb
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 6.3.1
  • First release: May 19, 2017
  • Latest release: May 19, 2017
  • Number of updates: 4
  • Update frequency: every 8.8 days
  • Top authors: bioinfousal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by D3GB
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.56 ▼4.37
Dashboard /wp-admin3.31 ▲0.0046.05 ▼0.37
Posts /wp-admin/edit.php3.36 ▲0.0047.03 ▲2.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.45 ▼7.15
Media Library /wp-admin/upload.php3.23 ▲0.0032.36 ▼2.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for D3GB
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.171.60 ▼0.6848.43 ▲1.51
Dashboard /wp-admin2,206 ▲185.92 ▼0.05105.81 ▼11.9736.91 ▼9.27
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.1339.39 ▲1.0935.31 ▲1.42
Add New Post /wp-admin/post-new.php1,542 ▲518.28 ▲0.18621.61 ▼18.5053.74 ▼7.53
Media Library /wp-admin/upload.php1,382 ▼94.22 ▲0.0197.21 ▼5.0142.26 ▼4.49

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: genome, browser

d3gb/D3GB.php 92% from 13 tests

The main file in "D3GB" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("d3gb.php" instead of "D3GB.php")

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
No dangerous file extensions were detected2,432 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9180411,389
JavaScript316201,043

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.00
▷ Minimum class complexity8.00
▷ Maximum class complexity16.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin