Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.09ms] Passed 4 tests
A check of server-side resources used by DW Anything
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 45.76 ▲3.53 |
Dashboard /wp-admin | 3.42 ▲0.11 | 54.35 ▲0.13 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.47 ▼2.43 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 93.56 ▼0.91 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.60 ▲2.86 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_dwanythingwidget |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for DW Anything
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▲0.09 | 1.74 ▼0.38 | 44.82 ▼0.93 |
Dashboard /wp-admin | 2,198 ▲24 | 5.58 ▼0.00 | 89.48 ▲0.71 | 40.80 ▲1.10 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.04 | 34.41 ▼5.70 | 32.38 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.25 ▲5.13 | 655.98 ▲34.59 | 56.48 ▼12.98 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.00 | 101.11 ▲1.16 | 43.43 ▲0.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_dwanythingwidget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/dw-anything/classes/datasources/request.php
- > /wp-content/plugins/dw-anything/classes/datasources/table.php
- > /wp-content/plugins/dw-anything/classes/datasources/user.php
- > /wp-content/plugins/dw-anything/controller.php
- > /wp-content/plugins/dw-anything/dw-anything.php
- > /wp-content/plugins/dw-anything/views/default.php
- > /wp-content/plugins/dw-anything/classes/widgets/dwanything.php
- > /wp-content/plugins/dw-anything/helper.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant JPATH_LIBRARIES - assumed 'JPATH_LIBRARIES' (this will throw an Error in a future version of PHP) in wp-content/plugins/dw-anything/libraries/import.legacy.php on line 87
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: dynamic widgets, dynamic widget, wordpress widget, custom widget, sql...
dw-anything/dw-anything.php 92% from 13 tests
This is the main PHP file of "DW Anything" version 4.01.0002, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Success! There were no dangerous files found in this plugin3,905 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,106 | 3,667 | 3,903 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 6 | 17.65% |
▷ Concrete classes | 28 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 242 | |
▷ Static methods | 111 | 45.87% |
▷ Public methods | 217 | 89.67% |
▷ Protected methods | 22 | 9.09% |
▷ Private methods | 3 | 1.24% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 41 | |
▷ Global constants | 25 | 60.98% |
▷ Class constants | 16 | 39.02% |
▷ Public constants | 16 | 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
There are no PNG files in this plugin