Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/attachment-files-importer/attachment-files-importer.php+50
Methods with the same name as their class will not be constructors in a future version of PHP; AF_Import has a deprecated constructor
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.51ms] Passed 4 tests
Analyzing server-side resources used by Attachment Files Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.99 ▼4.05 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.16 ▼5.09 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.35 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.63 ▼12.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.23 ▲1.06 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Attachment Files Importer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.79 ▼1.01 | 1.70 ▲0.00 | 42.73 ▼8.93 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲0.95 | 100.37 ▼30.89 | 38.71 ▼2.03 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.12 ▲0.07 | 39.97 ▼2.45 | 35.04 ▼1.09 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.35 ▲0.18 | 672.61 ▼16.02 | 57.13 ▼0.31 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▲0.01 | 98.06 ▼5.35 | 42.07 ▼6.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
attachment-files-importer/attachment-files-importer.php Passed 13 tests
"Attachment Files Importer" version 0.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
120 characters long description:
Scan your Wordpress installation for all missing attachment files and download them from another Wordpress installation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin435 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 131 | 338 |
PO File | 1 | 29 | 36 | 97 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected