Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.28ms] Passed 4 tests
An overview of server-side resources used by WYSIWYG Calculator Block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.62 ▼4.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.74 ▼1.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.42 ▲5.24 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.96 ▼11.05 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.92 ▲0.23 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WYSIWYG Calculator Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▲0.09 | 2.15 ▼0.21 | 40.47 ▼2.31 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.07 | 93.48 ▼4.36 | 41.32 ▼2.11 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.05 | 39.07 ▲1.73 | 35.33 ▼0.49 |
Add New Post /wp-admin/post-new.php | 6,197 ▲4,671 | 19.07 ▼4.44 | 865.31 ▲195.53 | 61.80 ▲5.39 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.13 ▼0.12 | 101.21 ▼14.99 | 43.32 ▼5.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- 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)
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The calculator on the front end of a site. It inherits your sites styles.), #2 (The calculator on a different front end (identity hidden to protect the innocent), notice the different fonts.)
- Tags: There were no tags found
wysiwyg-calculator-block/plugin.php 85% from 13 tests
The main PHP file in "WYSIWYG Calculator Block" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wysiwyg-calculator-block.php" instead of "plugin.php")
- Git Repository: An alternative Git repository was detected
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,990 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 7,335 |
JavaScript | 7 | 58 | 126 | 477 |
Sass | 2 | 24 | 1 | 127 |
PHP | 2 | 12 | 58 | 50 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.PNG | 42.38KB | 23.27KB | ▼ 45.08% |
assets/screenshot-3.PNG | 32.82KB | 13.21KB | ▼ 59.77% |
assets/screenshot-4.PNG | 9.42KB | 5.02KB | ▼ 46.68% |
assets/screenshot-1.PNG | 13.46KB | 6.91KB | ▼ 48.70% |