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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 45.26 ▲10.89 |
Dashboard /wp-admin | 3.83 ▲0.52 | 56.50 ▲8.84 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 52.64 ▼4.90 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.45 | 95.33 ▼11.36 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 41.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.09 | 1.80 ▲0.15 | 44.44 ▲3.16 |
Dashboard /wp-admin | 2,198 ▲24 | 5.57 ▲0.05 | 83.94 ▼4.06 | 34.37 ▼8.16 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.00 | 38.45 ▲1.26 | 35.12 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.47 ▲0.28 | 683.37 ▼12.14 | 59.31 ▲3.36 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.03 | 95.11 ▼8.42 | 43.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 2,246 | 9,721 | 18,907 |
JSON | 5 | 0 | 0 | 308 |
Markdown | 2 | 64 | 0 | 217 |
XML | 2 | 0 | 0 | 44 |
make | 1 | 9 | 4 | 26 |
YAML | 1 | 2 | 0 | 24 |
Bourne Shell | 2 | 4 | 1 | 8 |
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 code | 0.18 |
Average class complexity | 13.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 260.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 85 | |
▷ Abstract classes | 20 | 23.53% |
▷ Concrete classes | 65 | 76.47% |
▷ Final classes | 0 | 0.00% |
Methods | 527 | |
▷ Static methods | 415 | 78.75% |
▷ Public methods | 495 | 93.93% |
▷ Protected methods | 30 | 5.69% |
▷ Private methods | 2 | 0.38% |
Functions | 151 | |
▷ Named functions | 148 | 98.01% |
▷ Anonymous functions | 3 | 1.99% |
Constants | 199 | |
▷ Global constants | 7 | 3.52% |
▷ Class constants | 192 | 96.48% |
▷ Public constants | 192 | 100.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