Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼262.04ms] Passed 4 tests
An overview of server-side resources used by Widget Subtitles
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 36.05 ▲13.21 |
Dashboard /wp-admin | 3.13 ▲0.08 | 41.51 ▼1.46 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 43.64 ▲8.54 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 85.04 ▼1,049.32 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 29.43 ▼5.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Widget Subtitles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲92 | 15.88 ▲0.42 | 8.84 ▼0.28 | 52.24 ▲7.87 |
Dashboard /wp-admin | 2,931 ▲78 | 5.91 ▲0.05 | 134.92 ▲2.89 | 106.54 ▲5.46 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▼0.00 | 63.53 ▼4.54 | 94.89 ▲8.07 |
Add New Post /wp-admin/post-new.php | 1,481 ▼107 | 18.46 ▼3.38 | 350.31 ▲66.36 | 106.97 ▲3.77 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 4.99 ▼0.02 | 144.60 ▼11.91 | 110.47 ▼3.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 96% from 29 tests
readme.txt Passed 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
6 plugin tags: widget, sub title, sidebar, subtitles, widget subtitle...
widget-subtitles/widget-subtitles.php 92% from 13 tests
The primary PHP file in "Widget Subtitles" version 1.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin333 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 75 | 358 | 333 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 1 | 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 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin