Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/canonical-attachments/canonical-attachments.php+20
file_get_contents(wp-content/uploads/.htaccess): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.31ms] Passed 4 tests
This is a short check of server-side resources used by Canonical Attachments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.15 | 28.95 ▲6.67 |
Dashboard /wp-admin | 3.10 ▲0.04 | 45.26 ▼4.15 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 46.08 ▲9.87 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 87.13 ▼568.39 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 33.90 ▲4.62 |
Edit .htaccess /wp-admin/admin.php?page=htaccess-edits | 3.02 | 28.68 |
Canonicals /wp-admin/upload.php?page=canonical-attachments | 3.14 | 31.57 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] 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, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Canonical Attachments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,777 ▲182 | 16.04 ▲0.15 | 8.72 ▲0.37 | 46.43 ▼6.77 |
Dashboard /wp-admin | 3,059 ▲128 | 6.12 ▲0.16 | 134.14 ▼2.31 | 106.25 ▼8.64 |
Posts /wp-admin/edit.php | 2,842 ▲103 | 2.76 ▲0.04 | 66.05 ▼1.32 | 88.15 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,681 ▲9 | 21.90 ▲3.05 | 282.55 ▼100.04 | 104.95 ▼13.14 |
Media Library /wp-admin/upload.php | 1,909 ▲102 | 5.13 ▲0.11 | 143.36 ▲0.03 | 117.39 ▼11.63 |
Edit .htaccess /wp-admin/admin.php?page=htaccess-edits | 1,200 | 2.12 | 55.39 | 81.90 |
Canonicals /wp-admin/upload.php?page=canonical-attachments | 1,412 | 2.13 | 54.92 | 73.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/upload.php?page=canonical-attachments
- > Notice in wp-content/plugins/canonical-attachments/tools/bulk-editor.php+184
Undefined index: filter
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/canonical-attachments/templates/header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/canonical-attachments/templates/footer.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
9 plugin tags: canonical tags, canonicalize, canonical, ppt, doc...
canonical-attachments/canonical-attachments.php 92% from 13 tests
The main PHP file in "Canonical Attachments" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 240 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin519 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 68 | 49 | 519 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.51MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 124.35KB | 52.32KB | ▼ 57.92% |
screenshot-1.png | 128.97KB | 55.11KB | ▼ 57.27% |
screenshot-5.png | 62.51KB | 27.11KB | ▼ 56.64% |
screenshot-4.png | 78.79KB | 36.57KB | ▼ 53.58% |
templates/Hive-Digital-Logo.png | 6.15KB | 2.93KB | ▼ 52.43% |