Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼4.54ms] Passed 4 tests
Server-side resources used by Widget CSS Classes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.43 ▼1.94 |
Dashboard /wp-admin | 3.52 ▲0.17 | 45.91 ▼14.65 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 47.90 ▲3.23 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 95.37 ▼4.79 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 35.67 ▲3.48 |
Widget CSS Classes /wp-admin/options-general.php?page=widget-css-classes-settings | 3.41 | 32.35 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
WCSSC_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
WCSSC_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Widget CSS Classes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.31 ▼1.12 | 1.66 ▼0.09 | 42.47 ▼1.61 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.04 | 100.39 ▼20.03 | 38.89 ▼9.12 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 40.59 ▼0.72 | 35.59 ▼11.76 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 18.24 ▼0.13 | 630.28 ▼41.96 | 63.88 ▲5.81 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.16 ▼0.03 | 97.24 ▼10.69 | 43.36 ▲0.61 |
Widget CSS Classes /wp-admin/options-general.php?page=widget-css-classes-settings | 974 | 1.90 | 29.23 | 28.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-css-classes/widget-css-classes.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: widgets, widget classes, classes, css, widget css
widget-css-classes/widget-css-classes.php Passed 13 tests
This is the main PHP file of "Widget CSS Classes" version 1.5.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
Add custom, first, last, even, odd, and numbered classes to your widgets.
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
No dangerous file extensions were detected1,373 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 220 | 592 | 947 |
PO File | 4 | 140 | 188 | 338 |
Markdown | 1 | 12 | 0 | 40 |
JavaScript | 1 | 6 | 11 | 29 |
CSS | 1 | 2 | 8 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 29 | 69.05% |
▷ Public methods | 31 | 73.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 26.19% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin