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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.48ms] Passed 4 tests
An overview of server-side resources used by Concrete Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.82 ▼3.68 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.29 ▼0.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.71 ▼1.74 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.31 ▼8.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.93 ▲1.76 |
Concrete Calculator /wp-admin/options-general.php?page=sak_cc | 3.22 | 30.64 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Concrete Calculator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.27 ▼1.39 | 2.12 ▼0.42 | 41.43 ▼6.85 |
Dashboard /wp-admin | 2,213 ▲28 | 6.04 ▲1.13 | 109.33 ▼3.94 | 41.65 ▼4.43 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 39.43 ▲0.38 | 34.86 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.14 ▲5.63 | 593.96 ▼81.47 | 51.83 ▼3.06 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.22 ▼0.05 | 99.40 ▲0.55 | 44.55 ▼0.84 |
Concrete Calculator /wp-admin/options-general.php?page=sak_cc | 783 | 2.03 | 26.78 | 26.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/concrete-calculator/shortcode_function.php
- > /wp-content/plugins/concrete-calculator/shortcode_function_metric.php
- > /wp-content/plugins/concrete-calculator/index.php
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== concrete-calculator ===
)
concrete-calculator/index.php 92% from 13 tests
The main PHP script in "Concrete Calculator" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("concrete-calculator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin579 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 69 | 6 | 397 |
PHP | 3 | 13 | 8 | 139 |
JavaScript | 1 | 6 | 12 | 43 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/images/calculator-icon.png | 5.30KB | 3.75KB | ▼ 29.15% |
asset/images/calculator-icon2.png | 5.30KB | 3.75KB | ▼ 29.15% |
asset/images/dropdown.png | 1.01KB | 0.16KB | ▼ 83.78% |