Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.33ms] Passed 4 tests
A check of server-side resources used by DD Attachments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.44 ▲1.75 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.28 ▼1.05 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.92 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.19 ▼4.08 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.96 ▲2.97 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for DD Attachments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲63 | 13.30 ▼1.07 | 1.63 ▼0.52 | 40.73 ▼5.72 |
Dashboard /wp-admin | 2,201 ▲16 | 5.00 ▼0.86 | 96.85 ▼1.41 | 40.31 ▼6.74 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.28 ▲0.27 | 37.79 ▼3.94 | 35.10 ▼3.83 |
Add New Post /wp-admin/post-new.php | 6,552 ▲5,038 | 20.60 ▲2.93 | 881.86 ▲232.97 | 45.69 ▼3.24 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.33 ▲0.02 | 99.32 ▲4.39 | 42.43 ▲0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dd-attachments/dd-attachments.php:39
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/dd-attachments/dd_templates/metabox-attachments.php:3
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #2 (screenshot-2.png)
dd-attachments/dd-attachments.php Passed 13 tests
The entry point to "DD Attachments" version 1.0 is a PHP file that has certain tags in its header comment area
37 characters long description:
A plug-in to add and edit attachments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin702 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 27 | 295 |
CSS | 1 | 8 | 2 | 212 |
JavaScript | 1 | 49 | 11 | 148 |
SVG | 2 | 0 | 0 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin