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.11MB] [CPU: ▼2.57ms] Passed 4 tests
Server-side resources used by Ocean Posts Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.66 ▲3.04 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.88 ▲1.01 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.00 ▼3.59 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 98.13 ▼7.08 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.11 ▼0.62 |
Add New /wp-admin/post-new.php?post_type=ocean_posts_slider | 3.36 | 51.00 |
Posts Slider /wp-admin/edit.php?post_type=ocean_posts_slider | 3.38 | 38.90 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
ocean-posts-slider-version |
Browser metrics Passed 4 tests
Ocean Posts Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 14.69 ▲0.43 | 1.72 ▼0.18 | 45.46 ▲3.86 |
Dashboard /wp-admin | 2,219 ▲48 | 5.69 ▲0.05 | 91.50 ▲0.08 | 42.30 ▼1.17 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.01 ▲0.04 | 39.30 ▲0.40 | 36.46 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.21 ▲0.05 | 686.37 ▲5.87 | 50.61 ▼0.70 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.16 ▼0.09 | 99.06 ▼18.25 | 45.24 ▼4.97 |
Add New /wp-admin/post-new.php?post_type=ocean_posts_slider | 1,419 | 2.53 | 49.31 | 51.01 |
Posts Slider /wp-admin/edit.php?post_type=ocean_posts_slider | 1,088 | 1.96 | 33.39 | 34.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- ocean-posts-slider-version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ocean-posts-slider/includes/posts-slider.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: slider, oceanwp, posts slider
ocean-posts-slider/ocean-posts-slider.php Passed 13 tests
The main PHP file in "Ocean Posts Slider" ver. 2.0.6 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
Display your latest posts in a beautiful slider with different options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,945 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 38 | 30 | 931 |
PHP | 5 | 241 | 358 | 924 |
JavaScript | 10 | 96 | 77 | 560 |
PO File | 2 | 114 | 116 | 280 |
Sass | 1 | 41 | 0 | 240 |
Markdown | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin