Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.46ms] Passed 4 tests
Analyzing server-side resources used by Ocean Stick Anything
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 32.92 ▼7.41 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.81 ▼3.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.57 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.35 ▼9.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.55 ▼0.01 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
ocean-stick-anything-version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Ocean Stick Anything: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.08 | 1.78 ▼0.39 | 37.50 ▼5.97 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▼0.11 | 94.08 ▼14.44 | 39.60 ▼2.73 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.00 ▼0.04 | 35.31 ▼4.21 | 28.70 ▼8.04 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.37 ▼4.92 | 628.78 ▼15.86 | 51.96 ▼1.52 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.28 ▲0.12 | 94.94 ▼1.27 | 43.59 ▲0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- ocean-stick-anything-version
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
4 plugin tags: stick anything, oceanwp, sticky, stick
ocean-stick-anything/ocean-stick-anything.php Passed 13 tests
"Ocean Stick Anything" version 2.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
A simple plugin to stick anything you want on your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,181 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 115 | 24 | 911 |
PHP | 2 | 80 | 193 | 235 |
CSS | 2 | 4 | 3 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | 35.29% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 3 | |
▷ Named functions | 3 | 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