Benchmarks
Plugin footprint 48% 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.01MB] [CPU: ▼6.74ms] Passed 4 tests
A check of server-side resources used by Attach element from activity
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.75 ▼5.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.74 ▼0.05 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.71 ▼7.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.79 ▼13.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.81 ▼0.98 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_aitas_attach_element_activity |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Attach element from activity
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.80 ▼0.55 | 9.21 ▲7.62 | 37.68 ▼6.12 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.03 | 82.76 ▼6.68 | 41.05 ▼4.13 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.00 | 39.77 ▲5.26 | 36.84 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,528 ▲3 | 23.21 ▼0.25 | 617.74 ▼56.81 | 47.41 ▼14.28 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.25 ▼0.03 | 96.11 ▼3.42 | 42.50 ▼3.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 cannot be uninstalled
- > Warning in wp-content/plugins/attach-an-item-to-the-activity-stream/inc/basic_function.php+65
Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
- The uninstall procedure failed, leaving 1 table in the database
- wp_aitas_attach_element_activity
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: attach, buddypress activity, embed, activity stream, activity...
attach-an-item-to-the-activity-stream/attach-element-from-activity.php 92% from 13 tests
"Attach element from activity" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("attach-an-item-to-the-activity-stream.php" instead of "attach-element-from-activity.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin434 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 241 | 114 | 294 |
CSS | 1 | 2 | 2 | 107 |
JavaScript | 1 | 29 | 2 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin