Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼138.50ms] Passed 4 tests
Server-side resources used by Country Info Visual Editor (WYSIWYG) Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 32.99 ▲13.58 |
Dashboard /wp-admin | 3.12 ▲0.07 | 42.50 ▲0.45 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 44.06 ▼0.93 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 89.55 ▼558.74 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 32.81 ▲5.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Country Info Visual Editor (WYSIWYG) Button: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲108 | 16.26 ▲0.77 | 9.03 ▼3.13 | 44.37 ▼4.26 |
Dashboard /wp-admin | 2,970 ▲36 | 6.03 ▼0.01 | 148.96 ▲5.88 | 113.67 ▼0.34 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 63.57 ▼0.54 | 89.31 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.88 ▲0.12 | 366.42 ▼15.27 | 109.11 ▲4.43 |
Media Library /wp-admin/upload.php | 1,813 ▼12 | 5.03 ▼0.00 | 146.79 ▼10.30 | 118.57 ▼3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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 | 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Country_Info_Visual_Editor_Button\\add_action() in wp-content/plugins/country-info-visual-editor-wysiwyg-button/country-info-visual-editor-button.php:19
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2 in country-info-visual-editor-wysiwyg-button/assets to your readme.txt
country-info-visual-editor-wysiwyg-button/country-info-visual-editor-button.php 92% from 13 tests
The main file in "Country Info Visual Editor (WYSIWYG) Button" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("country-info-visual-editor-wysiwyg-button.php" instead of "country-info-visual-editor-button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected359 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 23 | 77 | 326 |
JavaScript | 1 | 1 | 2 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/globe.png | 1.57KB | 1.20KB | ▼ 23.49% |