Benchmarks
Plugin footprint 65% from 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.20MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by Webby Maps
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.57 ▼3.75 |
Dashboard /wp-admin | 3.58 ▲0.28 | 45.89 ▼4.39 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 50.69 ▼6.68 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 89.82 ▼1.10 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.74 ▲1.66 |
All Maps /wp-admin/admin.php?page=webby-maps | 3.42 | 46.57 |
Create New /wp-admin/admin.php?page=webby-maps-add | 3.42 | 34.98 |
Server storage [IO: ▲18.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_webbymaps_maps |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Webby Maps
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.24 ▼1.12 | 1.78 ▼0.04 | 43.54 ▼3.43 |
Dashboard /wp-admin | 2,229 ▲44 | 4.88 ▼0.98 | 107.42 ▲4.92 | 42.54 ▼1.46 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.01 ▼0.02 | 39.88 ▲3.67 | 33.97 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,552 ▲16 | 23.05 ▼0.23 | 579.77 ▼99.32 | 47.46 ▼15.78 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.30 ▲0.03 | 96.56 ▲3.00 | 40.24 ▼0.36 |
All Maps /wp-admin/admin.php?page=webby-maps | 941 | 2.89 | 52.37 | 66.86 |
Create New /wp-admin/admin.php?page=webby-maps-add | 1,199 | 4.15 | 132.02 | 58.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_webbymaps_maps
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function WebbyMaps\\Admin\\is_admin() in wp-content/plugins/webby-maps/src/Admin/Admin.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=webby-maps-add
- > Network (severe)
https://fonts.googleapis.com/css?family=Segoe%20UI:400,700,400italic,700italic&subset=latin - Failed to load resource: the server responded with a status of 400 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: unlimited, free, maps
webby-maps/main.php 85% from 13 tests
The principal PHP file in "Webby Maps" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 156 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("webby-maps.php" instead of "main.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
Everything looks great! No dangerous files found in this plugin1,170 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 179 | 111 | 1,096 |
SVG | 1 | 0 | 1 | 45 |
JavaScript | 5 | 3 | 134 | 26 |
CSS | 3 | 0 | 776 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 32 | 40.51% |
▷ Public methods | 42 | 53.16% |
▷ Protected methods | 34 | 43.04% |
▷ Private methods | 3 | 3.80% |
Functions | 19 | |
▷ Named functions | 5 | 26.32% |
▷ Anonymous functions | 14 | 73.68% |
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
There were not PNG files found in your plugin