Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼3.64ms] Passed 4 tests
Server-side resources used by BCorp Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 39.95 ▼3.02 |
Dashboard /wp-admin | 3.85 ▲0.55 | 45.98 ▼3.47 |
Posts /wp-admin/edit.php | 3.96 ▲0.61 | 47.91 ▲0.72 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 85.56 ▼8.79 |
Media Library /wp-admin/upload.php | 3.77 ▲0.55 | 38.10 ▲3.58 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BCorp Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.50 ▼0.88 | 1.71 ▲0.12 | 40.51 ▼4.98 |
Dashboard /wp-admin | 2,221 ▲33 | 4.89 ▲0.05 | 96.51 ▼12.87 | 37.09 ▼5.73 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.01 | 38.11 ▲2.25 | 32.69 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,527 ▼15 | 23.37 ▲5.32 | 653.18 ▲22.39 | 67.75 ▲10.63 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.23 ▼0.02 | 100.38 ▼4.23 | 43.02 ▲1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bcorp-slider/bcorp_slider.php:13
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
bcorp-slider/bcorp_slider.php 92% from 13 tests
The main file in "BCorp Slider" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("bcorp-slider.php" instead of "bcorp_slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,285 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 103 | 1,979 |
JavaScript | 3 | 16 | 0 | 208 |
CSS | 2 | 12 | 1 | 98 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 45.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 6.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/slider/a11.png | 4.07KB | 2.49KB | ▼ 38.87% |
images/slider/a19.png | 4.08KB | 2.64KB | ▼ 35.30% |
images/slider/b07.png | 1.74KB | 1.60KB | ▼ 8.24% |
images/slider/b05.png | 1.38KB | 1.22KB | ▼ 11.73% |
images/slider/a02.png | 5.63KB | 3.45KB | ▼ 38.77% |