Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼166.71ms] Passed 4 tests
Analyzing server-side resources used by Sponsors Carousel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.10 | 41.81 ▲5.45 |
Dashboard /wp-admin | 3.17 ▲0.11 | 53.26 ▲16.16 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 42.19 ▼7.39 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 96.80 ▼669.58 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 37.21 ▲4.68 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Sponsors Carousel
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲252 | 16.37 ▲0.37 | 12.92 ▲2.84 | 52.31 ▲2.87 |
Dashboard /wp-admin | 2,997 ▲63 | 6.09 ▲0.14 | 146.15 ▼12.47 | 122.71 ▼1.95 |
Posts /wp-admin/edit.php | 2,769 ▲30 | 2.70 ▼0.12 | 71.52 ▲3.67 | 99.01 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,516 ▼167 | 16.77 ▼1.59 | 365.04 ▼30.10 | 134.18 ▲23.25 |
Media Library /wp-admin/upload.php | 1,837 ▲30 | 5.01 ▼0.00 | 151.33 ▼22.10 | 128.35 ▲3.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sponsors-carousel/sponsors-carousel.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (This shows the default look of the carousel.), #2 (This shows admin panel.)
sponsors-carousel/sponsors-carousel.php Passed 13 tests
"Sponsors Carousel" version 4.02's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
Sponsors logos on javascript carousel.
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
Everything looks great! No dangerous files found in this plugin2,278 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 319 | 29 | 1,430 |
PHP | 2 | 51 | 48 | 506 |
PO File | 2 | 88 | 92 | 229 |
CSS | 2 | 4 | 0 | 113 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 6 | 50.00% |
▷ Anonymous functions | 6 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.25MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 44.67KB | 16.39KB | ▼ 63.30% |
screenshot-2.png | 126.71KB | 43.86KB | ▼ 65.39% |
screenshot-3.png | 81.88KB | 31.93KB | ▼ 61.01% |