Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.84ms] Passed 4 tests
A check of server-side resources used by Diasposter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.18 ▼0.00 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.16 ▲2.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.22 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.36 ▼19.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.49 ▲2.84 |
Diasposter /wp-admin/options-general.php?page=diasposter_settings | 3.20 | 31.17 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Diasposter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.25 ▼0.10 | 1.69 ▲0.11 | 45.77 ▼2.00 |
Dashboard /wp-admin | 2,201 ▲30 | 5.62 ▼0.04 | 92.86 ▲1.36 | 40.75 ▼2.99 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▼0.01 | 39.25 ▲1.99 | 36.29 ▲2.28 |
Add New Post /wp-admin/post-new.php | 6,291 ▲4,765 | 18.77 ▼4.47 | 929.29 ▲229.89 | 58.76 ▼3.60 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.15 ▼0.02 | 113.42 ▲7.68 | 46.40 ▲1.17 |
Diasposter /wp-admin/options-general.php?page=diasposter_settings | 886 | 1.99 | 26.46 | 34.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=diasposter_settings
- > Notice in wp-content/plugins/diasposter/diasposter.php+1175
Undefined index: user_accounts
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=diasposter_settings
- > Notice in wp-content/plugins/diasposter/diasposter.php+1192
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=diasposter_settings
- > Notice in wp-content/plugins/diasposter/diasposter.php+1192
Undefined index: passwords
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/diasposter/diasposter.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
5 plugin tags: post formats, crosspost, post, publishing, diaspora
diasposter/diasposter.php Passed 13 tests
"Diasposter" version 0.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
Automatically crossposts to your Diaspora* stream when you publish a post on your WordPress blog.
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
Good job! No executable or dangerous file extensions detected3,313 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 569 | 452 | 2,971 |
PO File | 1 | 108 | 115 | 317 |
CSS | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 119.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 223.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 2 | 1.32% |
▷ Public methods | 58 | 38.16% |
▷ Protected methods | 36 | 23.68% |
▷ Private methods | 58 | 38.16% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin