Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼296.03ms] Passed 4 tests
Analyzing server-side resources used by World Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 70.82 ▲17.70 |
Dashboard /wp-admin | 3.53 ▲0.11 | 35.28 ▲2.03 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 38.73 ▲3.18 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.02 | 93.16 ▼1,189.60 |
Media Library /wp-admin/upload.php | 3.40 ▲0.10 | 25.04 ▲0.26 |
World Map /wp-admin/admin.php?page=addmap | 3.37 | 22.58 |
Skin /wp-admin/admin.php?page=addskin | 3.35 | 22.59 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 419 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by World Map
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,910 ▲166 | 16.27 ▲0.61 | 10.84 ▲5.07 | 2.58 ▲0.48 |
Dashboard /wp-admin | 2,927 ▲69 | 6.19 ▼0.07 | 117.99 ▼18.19 | 159.52 ▼8.10 |
Posts /wp-admin/edit.php | 2,727 ▲33 | 3.24 ▲0.00 | 64.11 ▼1.98 | 140.14 ▼8.48 |
Add New Post /wp-admin/post-new.php | 1,737 ▲76 | 21.32 ▲5.55 | 447.94 ▲20.38 | 159.63 ▼9.10 |
Media Library /wp-admin/upload.php | 1,737 ▲39 | 5.55 ▲0.03 | 147.54 ▲8.32 | 189.50 ▼9.39 |
World Map /wp-admin/admin.php?page=addmap | 990 | 2.40 | 52.65 | 87.96 |
Skin /wp-admin/admin.php?page=addskin | 1,051 | 2.54 | 55.84 | 120.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=addskin
- > Notice in wp-content/plugins/world-map/admin/admin-master.php+31
Undefined index: skin_name
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (22 tag instead of maximum 10)
world-map/world-map.php 92% from 13 tests
The principal PHP file in "World Map" v. 1.2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin71,307 lines of code in 415 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 411 | 5,832 | 12,218 | 71,287 |
CSS | 2 | 0 | 8 | 14 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 408 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 408 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,238 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1,234 | 99.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 0.32% |
Functions | 4 | |
▷ Named functions | 4 | 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
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 |
public/image/marker_blue.png | 3.11KB | 2.20KB | ▼ 29.30% |