84% dgxpco

Code Review | DGXPCO

WordPress plugin DGXPCO scored84%from 54 tests.

About plugin

  • Plugin page: dgxpco
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 24, 2018
  • Latest release: Mar 3, 2018
  • Number of updates: 9
  • Update frequency: every 1.2 days
  • Top authors: ericmann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.50MB] [CPU: ▼0.97ms] Passed 4 tests

A check of server-side resources used by DGXPCO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5245.26 ▲10.89
Dashboard /wp-admin3.83 ▲0.5256.50 ▲8.84
Posts /wp-admin/edit.php3.88 ▲0.5252.64 ▼4.90
Add New Post /wp-admin/post-new.php6.35 ▲0.4595.33 ▼11.36
Media Library /wp-admin/upload.php3.75 ▲0.5241.06 ▲3.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 131 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DGXPCO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.091.80 ▲0.1544.44 ▲3.16
Dashboard /wp-admin2,198 ▲245.57 ▲0.0583.94 ▼4.0634.37 ▼8.16
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0038.45 ▲1.2635.12 ▼3.15
Add New Post /wp-admin/post-new.php1,526 ▼023.47 ▲0.28683.37 ▼12.1459.31 ▲3.36
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.0395.11 ▼8.4243.63 ▼0.76

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 67× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Compat' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/lib/constants.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core32_Util' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/src/Core32/SipHash.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/src/Core/X25519.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_Poly1305_State' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/namespaced/Core/Poly1305/State.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_Util' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/src/Core/Poly1305/State.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519_Ge_Precomp' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/namespaced/Core/Curve25519/Ge/Precomp.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/namespaced/Core/ChaCha20.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_Util' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/namespaced/Core/Util.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20_Ctx' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/namespaced/Core/ChaCha20/Ctx.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Crypto' not found in wp-content/plugins/dgxpco/vendor/paragonie/sodium_compat/namespaced/Crypto.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: upgrade, secure, update

dgxpco/dgxpco.php Passed 13 tests

Analyzing the main PHP file in "DGXPCO" version 1.2.0
29 characters long description:
Secure updates for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected19,534 lines of code in 121 files:
LanguageFilesBlank linesComment linesLines of code
PHP1082,2469,72118,907
JSON500308
Markdown2640217
XML20044
make19426
YAML12024
Bourne Shell2418

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.87
▷ Minimum class complexity1.00
▷ Maximum class complexity260.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes85
▷ Abstract classes2023.53%
▷ Concrete classes6576.47%
▷ Final classes00.00%
Methods527
▷ Static methods41578.75%
▷ Public methods49593.93%
▷ Protected methods305.69%
▷ Private methods20.38%
Functions151
▷ Named functions14898.01%
▷ Anonymous functions31.99%
Constants199
▷ Global constants73.52%
▷ Class constants19296.48%
▷ Public constants192100.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
No PNG files were detected