Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.39ms] Passed 4 tests
This is a short check of server-side resources used by Ocean Social Sharing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.96 ▼8.37 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.05 ▼3.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.79 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.06 ▼21.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.96 ▲2.24 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
ocean-social-sharing-version |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Ocean Social Sharing: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.82 ▲0.46 | 1.84 ▼0.08 | 40.45 ▼9.14 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▲0.03 | 111.49 ▼7.14 | 41.05 ▼4.22 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 41.47 ▲0.72 | 35.71 ▼6.20 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 18.63 ▼4.36 | 588.97 ▼80.58 | 54.59 ▼0.71 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.17 ▼0.06 | 95.99 ▼3.15 | 40.96 ▼4.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- ocean-social-sharing-version
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: social, oceanwp, share, social sharing, social share
ocean-social-sharing/ocean-social-sharing.php Passed 13 tests
This is the main PHP file of "Ocean Social Sharing" version 2.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
A simple plugin to add social share buttons to your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,140 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 160 | 293 | 826 |
PO File | 4 | 209 | 264 | 503 |
Sass | 1 | 84 | 15 | 361 |
CSS | 3 | 10 | 7 | 326 |
JavaScript | 4 | 3 | 5 | 114 |
Markdown | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected