Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.98ms] Passed 4 tests
Server-side resources used by Sugar Calendar - WP All Import Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 40.16 ▼4.34 |
Dashboard /wp-admin | 3.66 ▲0.36 | 47.20 ▼1.43 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 48.58 ▲4.69 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 93.34 ▼5.98 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 36.68 ▲3.85 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sugar Calendar - WP All Import Add-on
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.25 ▼1.04 | 1.66 ▼0.39 | 41.58 ▼3.56 |
Dashboard /wp-admin | 2,226 ▲38 | 4.85 ▼0.05 | 96.18 ▼20.00 | 39.06 ▼8.11 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.01 ▼0.02 | 62.53 ▲20.78 | 44.88 ▲10.90 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.24 ▲0.15 | 652.96 ▲7.63 | 56.36 ▲0.02 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.21 ▲0.01 | 99.02 ▲3.61 | 41.07 ▼0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
There were no plugin tags found
sugar-calendar-wp-all-import/sc-event-wp-all-import-addon.php 77% from 13 tests
The principal PHP file in "Sugar Calendar - WP All Import Add-on" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("sugar-calendar-wp-all-import.php" instead of "sc-event-wp-all-import-addon.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin1,717 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 339 | 544 | 1,476 |
CSS | 1 | 45 | 1 | 225 |
JavaScript | 1 | 8 | 9 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 7 | 7.69% |
▷ Public methods | 67 | 73.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 26.37% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected