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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.16ms] Passed 4 tests
An overview of server-side resources used by Sebastian
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.23 ▲2.53 |
Dashboard /wp-admin | 3.42 ▲0.11 | 51.87 ▼6.46 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 54.20 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.01 ▼4.23 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 41.53 ▲3.76 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
sebastian_settings |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Sebastian
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲217 | 13.74 ▼0.84 | 7.17 ▲5.22 | 43.48 ▼1.04 |
Dashboard /wp-admin | 2,274 ▲74 | 5.11 ▲0.23 | 113.30 ▼4.65 | 39.44 ▼8.99 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.30 ▲0.13 | 41.57 ▲1.19 | 34.15 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,552 ▲7 | 23.30 ▲0.22 | 628.32 ▼6.53 | 34.19 ▼19.93 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.35 ▲0.14 | 102.87 ▼22.53 | 46.07 ▼8.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- sebastian_settings
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sebastian/public/partials/sebastian-public-display.php
- > /wp-content/plugins/sebastian/admin/partials/sebastian-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
8 plugin tags: dot, sebastian, batuhan, fun, joking...
sebastian/sebastian.php Passed 13 tests
The principal PHP file in "Sebastian" v. 1.0.0 is loaded by WordPress automatically on each request
99 characters long description:
Sebastian is a simple Wordpress plugin that allows you to surprise your visitors. Like easter eggs.
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
No dangerous file extensions were detected929 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 92 | 104 | 456 |
CSS | 2 | 45 | 10 | 267 |
PO File | 2 | 60 | 58 | 132 |
JavaScript | 2 | 8 | 0 | 74 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 72.38KB | 30.88KB | ▼ 57.34% |
admin/images/radixworks.png | 15.56KB | 4.15KB | ▼ 73.32% |