Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.46ms] Passed 4 tests
Analyzing server-side resources used by SocialHub
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 38.13 ▼5.01 |
Dashboard /wp-admin | 3.43 ▲0.08 | 46.03 ▼16.39 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.37 ▲4.51 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 91.01 ▼1.34 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.74 ▲0.92 |
SocialHub /wp-admin/options-general.php?page=socialhub-admin | 3.42 | 31.71 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
SocialHub: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.26 ▼1.04 | 1.71 ▼0.40 | 40.79 ▼7.03 |
Dashboard /wp-admin | 2,217 ▲29 | 4.84 ▼1.05 | 112.74 ▼4.79 | 42.84 ▲0.27 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.00 ▼0.06 | 40.82 ▲3.26 | 35.03 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,521 ▼3 | 23.42 ▲0.13 | 596.99 ▼108.12 | 64.68 ▲9.64 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.28 ▲0.07 | 97.58 ▲1.52 | 43.78 ▲1.60 |
SocialHub /wp-admin/options-general.php?page=socialhub-admin | 776 | 2.05 | 24.56 | 28.30 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: integration, socialhub, social
socialhub/socialhub.php Passed 13 tests
The principal PHP file in "SocialHub" v. 1.0.4 is loaded by WordPress automatically on each request
36 characters long description:
Integrates WordPress with SocialHub.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,130 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 187 | 753 | 867 |
Markdown | 1 | 32 | 0 | 168 |
JSON | 3 | 0 | 0 | 87 |
CSS | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 1 | 3 |
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.43 |
Average class complexity | 11.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 16 | 25.00% |
▷ Public methods | 54 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 15.62% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ 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