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.04MB] [CPU: ▼11.81ms] Passed 4 tests
An overview of server-side resources used by Ocean Product Sharing
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.91 ▲3.33 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.01 ▼7.26 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.54 ▲4.68 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.65 ▼43.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.10 ▲0.32 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
ocean-product-sharing-version |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ocean Product Sharing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.25 ▼1.12 | 1.68 ▼0.18 | 44.11 ▲4.73 |
Dashboard /wp-admin | 2,206 ▲20 | 5.90 ▲0.94 | 108.22 ▼4.07 | 39.62 ▼7.36 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.00 | 39.72 ▲3.34 | 34.04 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.99 ▼0.16 | 647.32 ▲3.59 | 50.96 ▼0.04 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.13 ▼0.06 | 96.27 ▼4.19 | 41.39 ▼0.50 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- ocean-product-sharing-version
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: oceanwp, social sharing, social, social share product, share product
ocean-product-sharing/ocean-product-sharing.php Passed 13 tests
This is the main PHP file of "Ocean Product Sharing" version 2.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
130 characters long description:
A simple plugin to add social sharing buttons to your single product page. Compatible with WooCommerce and Easy Digital Downloads.
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 detected926 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 93 | 220 | 352 |
PO File | 4 | 68 | 99 | 214 |
CSS | 3 | 2 | 9 | 162 |
Sass | 1 | 33 | 6 | 153 |
JavaScript | 4 | 2 | 5 | 35 |
Markdown | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin