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
Install script ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼7.50ms] Passed 4 tests
Server-side resources used by Ocean Modal Window
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 40.73 ▼2.39 |
Dashboard /wp-admin | 3.73 ▲0.42 | 45.51 ▼5.75 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 46.01 ▼2.83 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 85.76 ▼19.01 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.43 ▲1.90 |
Modal /wp-admin/edit.php?post_type=ocean_modal_window | 3.69 | 38.54 |
Add New /wp-admin/post-new.php?post_type=ocean_modal_window | 6.35 | 82.31 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
ocean-modal-window-version |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ocean Modal Window
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.60 ▼0.78 | 1.84 ▼0.03 | 40.54 ▼10.66 |
Dashboard /wp-admin | 2,233 ▲48 | 4.85 ▼0.03 | 97.41 ▼16.35 | 37.72 ▼5.11 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 1.98 ▼0.02 | 36.18 ▼0.36 | 31.31 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.33 ▲0.26 | 677.84 ▼20.40 | 56.48 ▲3.38 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.16 ▼0.06 | 121.74 ▼12.25 | 45.76 ▼7.36 |
Modal /wp-admin/edit.php?post_type=ocean_modal_window | 1,077 | 1.93 | 29.86 | 29.06 |
Add New /wp-admin/post-new.php?post_type=ocean_modal_window | 6,395 | 23.45 | 893.72 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- ocean-modal-window-version
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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 no errors were found, 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: modal, modal popup, oceanwp
ocean-modal-window/ocean-modal-window.php Passed 13 tests
The entry point to "Ocean Modal Window" version 2.2.0 is a PHP file that has certain tags in its header comment area
99 characters long description:
Create the good kind of popups with ease. Display any content in a modal, anywhere on your website.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin5,653 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 518 | 515 | 3,075 |
JavaScript | 14 | 157 | 85 | 1,202 |
PO File | 3 | 300 | 388 | 738 |
CSS | 6 | 17 | 23 | 341 |
Sass | 2 | 42 | 0 | 287 |
Markdown | 1 | 3 | 0 | 10 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 293.00 |
▷ Minimum class complexity | 293.00 |
▷ Maximum class complexity | 293.00 |
Average method complexity | 10.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.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 | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 30 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.23% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin