Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/cop-pdf-attachment-menu/cop_pdf_attachment_menu.php+79
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.70ms] Passed 4 tests
Analyzing server-side resources used by COP PDF Attachment Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.09 ▼39.42 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.35 ▼47.35 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.27 ▼50.88 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.00 ▼89.13 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.88 ▼27.35 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_cop_pdf_attachment_menu_widget |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
COP PDF Attachment Menu: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.14 ▼0.42 | 1.79 ▼0.09 | 43.46 ▼2.84 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.09 | 94.37 ▲6.23 | 41.02 ▼1.53 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.01 | 42.07 ▲2.50 | 34.83 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.10 ▲0.01 | 709.99 ▼26.00 | 55.34 ▲0.04 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.03 | 107.66 ▲2.24 | 46.88 ▲1.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cop-pdf-attachment-menu/cop_pdf_attachment_menu.php+79
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_cop_pdf_attachment_menu_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cop-pdf-attachment-menu/lib/copbasewidgetclass.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cop-pdf-attachment-menu/lib/copbasewidgetclass.php:7
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: sidebar, menu, attachments, pdf, list...
cop-pdf-attachment-menu/cop_pdf_attachment_menu.php 85% from 13 tests
This is the main PHP file of "COP PDF Attachment Menu" version 0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cop-pdf-attachment-menu.php" instead of "cop_pdf_attachment_menu.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected440 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 104 | 440 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/agreenweb.png | 0.33KB | 0.27KB | ▼ 18.37% |