Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.44ms] Passed 4 tests
A check of server-side resources used by Pinned Feed Notices for BuddyPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.61 ▼1.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.32 ▼6.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.98 ▼5.89 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.26 ▼4.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 37.47 ▲0.22 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pinned Feed Notices for BuddyPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.02 | 1.67 ▼0.02 | 42.72 ▼2.56 |
Dashboard /wp-admin | 2,195 ▲21 | 5.59 ▲0.05 | 84.88 ▼17.79 | 39.12 ▼5.08 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▲0.01 | 34.64 ▼1.73 | 33.16 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.18 ▲0.05 | 631.21 ▼50.47 | 59.04 ▲9.24 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▲0.01 | 102.58 ▲1.06 | 44.17 ▼1.09 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bp-pinned-feed-notices/bp-pinned-feed-notices.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: feed, buddypress, notices
bp-pinned-feed-notices/bp-pinned-feed-notices.php Passed 13 tests
The principal PHP file in "Pinned Feed Notices for BuddyPress" v. 1.0.2 is loaded by WordPress automatically on each request
57 characters long description:
Add custom notices to the top of the main activity feed.
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
Good job! No executable or dangerous file extensions detected397 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 100 | 137 | 326 |
JavaScript | 1 | 16 | 16 | 38 |
CSS | 1 | 4 | 0 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin