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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.37ms] Passed 4 tests
A check of server-side resources used by DCO Comment Attachment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.23 ▼0.78 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.20 ▼3.09 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.01 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 88.90 ▼12.92 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 38.10 ▲4.70 |
DCO Comment Attachment /wp-admin/options-general.php?page=dco-comment-attachment | 3.33 | 35.90 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for DCO Comment Attachment
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.82 ▲0.62 | 1.79 ▲0.12 | 43.47 ▲0.13 |
Dashboard /wp-admin | 2,210 ▲22 | 4.89 ▲0.03 | 110.65 ▲4.94 | 40.78 ▼4.51 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▲0.00 | 42.34 ▲5.69 | 37.85 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,544 ▲8 | 23.49 ▲0.26 | 600.15 ▼54.72 | 49.83 ▼24.24 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.19 ▲0.00 | 97.35 ▲0.92 | 41.52 ▲0.65 |
DCO Comment Attachment /wp-admin/options-general.php?page=dco-comment-attachment | 1,555 | 1.74 | 24.88 | 32.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: image, video, comment attachment, attachment, comment
dco-comment-attachment/dco-comment-attachment.php Passed 13 tests
The main file in "DCO Comment Attachment" v. 2.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Allows your visitors to attach files with their comments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,722 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 280 | 937 | 1,328 |
JavaScript | 2 | 47 | 8 | 259 |
CSS | 2 | 32 | 1 | 135 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 46.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 78 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin