Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.43ms] Passed 4 tests
A check of server-side resources used by Gis maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.94 ▲1.02 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.60 ▼2.52 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 50.03 ▲4.26 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 92.35 ▼2.79 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 34.73 ▼5.42 |
Add New /wp-admin/post-new.php?post_type=ptgismap | 3.46 | 54.37 |
All gis maps /wp-admin/edit.php?post_type=ptgismap | 3.42 | 43.27 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=ptgismap | 3.31 | 32.45 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ptgismap | 3.31 | 36.72 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
category_children |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gis maps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.21 ▼1.06 | 4.18 ▲1.95 | 43.12 ▼7.32 |
Dashboard /wp-admin | 2,238 ▲50 | 4.83 ▼1.05 | 103.38 ▼12.12 | 41.75 ▼6.79 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.02 ▼0.03 | 33.21 ▼3.07 | 35.87 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,563 ▲49 | 23.22 ▲5.67 | 626.87 ▼12.12 | 54.32 ▲2.47 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.16 ▼0.03 | 93.89 ▼19.35 | 39.63 ▼10.24 |
Add New /wp-admin/post-new.php?post_type=ptgismap | 2,586 | 7.78 | 194.62 | 68.81 |
All gis maps /wp-admin/edit.php?post_type=ptgismap | 1,849 | 2.02 | 35.31 | 30.14 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=ptgismap | 1,339 | 2.13 | 28.49 | 28.27 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=ptgismap | 1,478 | 2.14 | 27.12 | 30.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- category_children
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 (11 tag instead of maximum 10)
- Donate link: Please fix this invalid url: ""
gis-maps/gismaps.php 92% from 13 tests
The primary PHP file in "Gis maps" version 0.3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gis-maps.php" instead of "gismaps.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,908 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 89 | 100 | 1,523 |
PHP | 2 | 28 | 13 | 221 |
CSS | 3 | 23 | 0 | 122 |
HTML | 1 | 0 | 0 | 42 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 14 | |
▷ Static methods | 4 | 28.57% |
▷ Public methods | 14 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gismaps_maps/openlayers-example/resources/measure-control.png | 14.35KB | 0.42KB | ▼ 97.09% |