Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼32.06ms] Passed 4 tests
A check of server-side resources used by Vertical Center
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.38 ▲2.77 |
Dashboard /wp-admin | 3.06 ▼0.24 | 24.10 ▼24.35 |
Posts /wp-admin/edit.php | 3.06 ▼0.29 | 28.35 ▼17.61 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.82 | 24.54 ▼73.40 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 24.07 ▼12.89 |
Vertical Center /wp-admin/options-general.php?page=vertical-center | 3.06 | 24.63 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Vertical Center
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲164 | 13.96 ▼0.62 | 8.93 ▲7.21 | 44.58 ▲2.51 |
Dashboard /wp-admin | 2,213 ▲22 | 4.84 ▼0.03 | 98.29 ▼4.01 | 39.64 ▼2.87 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.04 ▲0.05 | 33.77 ▼4.24 | 32.52 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.22 ▲0.01 | 648.74 ▼36.41 | 59.45 ▲5.13 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.23 ▲0.03 | 97.16 ▼2.51 | 44.77 ▼0.38 |
Vertical Center /wp-admin/options-general.php?page=vertical-center | 852 | 2.08 | 30.02 | 30.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/vertical-center/classes/class-vertical-center.php+204
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=vertical-center
- > Notice in wp-content/plugins/vertical-center/classes/class-vertical-center.php+204
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=vertical-center
- > Warning in wp-content/plugins/vertical-center/classes/class-vertical-center.php+204
count(): Parameter must be an array or an object that implements Countable
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: jquery, responsive, vertical, javascript, center
vertical-center/vertical-center.php Passed 13 tests
"Vertical Center" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
81 characters long description:
Easily vertically center any element relative to its container. Fully responsive.
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
Everything looks great! No dangerous files found in this plugin517 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 76 | 88 | 190 |
PHP | 2 | 50 | 132 | 180 |
Markdown | 1 | 67 | 0 | 109 |
JSON | 1 | 0 | 0 | 20 |
CSS | 1 | 6 | 5 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin