Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼181.37ms] 75% from 4 tests
A check of server-side resources used by OStatus
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 3,681.36ms on /wp-admin/admin.php?page=ostatus-dependencies)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 34.21 ▲10.71 |
Dashboard /wp-admin | 3.13 ▲0.07 | 34.44 ▼1.71 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 32.34 ▼8.64 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.05 | 71.61 ▼714.32 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 22.32 ▼0.81 |
OStatus /wp-admin/admin.php?page=ostatus | 3.05 | 20.50 |
Dependencies /wp-admin/admin.php?page=ostatus-dependencies | 3.17 | 3,681.36 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by OStatus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,701 ▲100 | 15.57 ▼0.39 | 5.15 ▼1.16 | 81.48 ▼8.21 |
Dashboard /wp-admin | 2,962 ▲67 | 6.00 ▼0.14 | 117.50 ▼19.85 | 192.32 ▲23.10 |
Posts /wp-admin/edit.php | 2,775 ▲35 | 3.12 ▼0.11 | 66.98 ▲2.44 | 150.54 ▲11.24 |
Add New Post /wp-admin/post-new.php | 3,764 ▲65 | 19.19 ▲0.61 | 465.97 ▼16.93 | 201.96 ▲34.92 |
Media Library /wp-admin/upload.php | 1,787 ▲38 | 5.51 ▼0.02 | 131.74 ▼5.42 | 204.25 ▲18.26 |
OStatus /wp-admin/admin.php?page=ostatus | 1,256 | 2.51 | 54.28 | 149.67 |
Dependencies /wp-admin/admin.php?page=ostatus-dependencies | 1,871 | 2.64 | 55.53 | 121.79 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/ostatus-for-wordpress/trunk/templates/feed-ostatus-comments.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/ostatus-for-wordpress/trunk/templates/feed-ostatus.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ostatus-for-wordpress/templates/dependencies-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/ostatus-for-wordpress/templates/feed-ostatus.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ostatus-for-wordpress/ostatus-for-wordpress.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ostatus-for-wordpress/trunk/templates/settings-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ostatus-for-wordpress/trunk/templates/dependencies-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ostatus-for-wordpress/templates/settings-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ostatus-for-wordpress/trunk/ostatus-for-wordpress.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/ostatus-for-wordpress/templates/feed-ostatus-comments.php:8
- > PHP Fatal error
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 Passed 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: mastodon, social, ostatus, statusnet, gnusocial...
ostatus-for-wordpress/ostatus-for-wordpress.php Passed 13 tests
"OStatus" version 2.5.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
A bundle of plugins that turn your blog into your private federated social network.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected523 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 80 | 151 | 479 |
CSS | 1 | 0 | 0 | 36 |
YAML | 1 | 1 | 1 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 28 | 100.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/ostatus_icon.png | 0.43KB | 0.32KB | ▼ 25.68% |
trunk/static/ostatus_logo.png | 0.89KB | 1.00KB | 0.00% |
static/ostatus_logo.png | 0.89KB | 1.00KB | 0.00% |
trunk/static/ostatus_icon.png | 0.43KB | 0.32KB | ▼ 25.68% |