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.05MB] [CPU: ▼8.25ms] Passed 4 tests
Analyzing server-side resources used by SMNTCS Simple Events Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.75 ▼4.20 |
Dashboard /wp-admin | 3.37 ▲0.02 | 45.10 ▼17.19 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.65 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.80 ▼11.44 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.32 ▲1.89 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_smntcs_simple_events_widget |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SMNTCS Simple Events Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲56 | 14.35 ▲0.00 | 1.72 ▲0.01 | 38.17 ▼5.38 |
Dashboard /wp-admin | 2,208 ▲31 | 5.86 ▲0.18 | 99.47 ▼5.06 | 38.69 ▼7.92 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.19 ▲0.23 | 41.10 ▲3.95 | 34.98 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6,259 ▲4,724 | 25.92 ▲2.95 | 843.74 ▲155.13 | 59.82 ▲0.34 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.30 ▲0.05 | 105.07 ▲1.85 | 41.09 ▼6.01 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_smntcs_simple_events_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: simple events, sidebar, widget, event
smntcs-simple-events-widget/smntcs-simple-events-widget.php Passed 13 tests
The principal PHP file in "SMNTCS Simple Events Widget" v. 2.2 is loaded by WordPress automatically on each request
124 characters long description:
Add meta box to posts and pages, to select event start and end date and show upcoming and previous events as sidebar widget.
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
There were no executable files found in this plugin1,985 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 2 | 208 | 0 | 1,246 |
CSS | 1 | 43 | 44 | 383 |
PHP | 3 | 40 | 121 | 194 |
JSON | 2 | 0 | 0 | 67 |
Markdown | 1 | 33 | 0 | 48 |
XML | 2 | 6 | 4 | 42 |
JavaScript | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.58MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
js/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/screenshot-02.png | 211.35KB | 97.56KB | ▼ 53.84% |
js/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/screenshot-01.png | 238.39KB | 115.61KB | ▼ 51.50% |