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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.65ms] Passed 4 tests
Server-side resources used by Calculate Values with Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.38 ▲0.69 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.76 ▼2.73 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.11 ▼13.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.48 ▼3.25 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 35.90 ▲1.76 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Calculate Values with Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.74 ▲0.38 | 1.81 ▼0.15 | 48.91 ▼2.31 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.03 | 103.25 ▼7.74 | 40.15 ▼6.28 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.05 | 36.58 ▼3.84 | 31.49 ▼6.55 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.34 ▼4.75 | 612.71 ▼21.80 | 54.50 ▼2.98 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.30 ▲0.08 | 96.14 ▼4.78 | 41.74 ▼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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/calculate-values-with-shortcodes/calculate-values-shortcodes.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: shortcodes, calculated fields, evaluation
calculate-values-with-shortcodes/calculate-values-shortcodes.php 92% from 13 tests
This is the main PHP file of "Calculate Values with Shortcodes" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("calculate-values-with-shortcodes.php" instead of "calculate-values-shortcodes.php")
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
Success! There were no dangerous files found in this plugin270 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 54 | 106 | 270 |
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.55 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 8.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 73.08KB | 38.13KB | ▼ 47.83% |
assets/screenshot-1.png | 58.80KB | 30.83KB | ▼ 47.57% |
assets/screenshot-2.png | 115.09KB | 47.29KB | ▼ 58.91% |