Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.75ms] Passed 4 tests
This is a short check of server-side resources used by wemap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 49.85 ▲2.15 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.93 ▼10.24 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 43.10 ▼9.92 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 101.25 ▲0.15 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.15 ▲1.00 |
Wemap Plugin /wp-admin/admin.php?page=wemap | 3.24 | 34.15 |
Log in /wp-admin/admin.php?page=wemap_connexion | 3.24 | 31.38 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
wemap: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 14.38 ▼0.23 | 1.89 ▼0.07 | 39.87 ▼0.04 |
Dashboard /wp-admin | 2,223 ▲46 | 5.55 ▼0.09 | 88.24 ▲0.23 | 81.75 ▲40.72 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 1.98 ▼0.01 | 35.25 ▼3.33 | 33.16 ▼2.28 |
Add New Post /wp-admin/post-new.php | 6,388 ▲4,862 | 27.87 ▲4.60 | 910.71 ▲266.61 | 39.51 ▼25.50 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.17 ▲0.00 | 120.26 ▲12.81 | 66.06 ▲18.64 |
Wemap Plugin /wp-admin/admin.php?page=wemap | 827 | 2.11 | 24.07 | 26.36 |
Log in /wp-admin/admin.php?page=wemap_connexion | 833 | 1.97 | 29.58 | 32.06 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WEMAP_API_URL - assumed 'WEMAP_API_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wemap/class/partials/pinpoints.php on line 3
- > PHP Warning
Use of undefined constant WEMAP_LIVEMAP_URL - assumed 'WEMAP_LIVEMAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wemap/class/partials/pinpoints.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Admin_Wemap_Meta_Box' not found in wp-content/plugins/wemap/class/partials/pinpoints.php:25
- > PHP Notice
Undefined index: user_id in wp-content/plugins/wemap/class/partials/pinpoints.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wemap/wemap.php:23
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wemap ===
)
wemap/wemap.php Passed 13 tests
"wemap" version 0.9.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
12 characters long description:
Plugin wemap
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
Good job! No executable or dangerous file extensions detected626 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 49 | 25 | 434 |
JavaScript | 3 | 23 | 12 | 131 |
CSS | 2 | 7 | 0 | 44 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 5 | 20.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
5 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tuto_site3.png | 169.58KB | 57.66KB | ▼ 66.00% |
images/icon_circle_maaap.png | 4.62KB | 2.39KB | ▼ 48.39% |
images/w_wemap.png | 1.08KB | 0.22KB | ▼ 79.93% |
images/tuto_site2.png | 17.26KB | 6.65KB | ▼ 61.49% |
images/tuto_site1.png | 106.76KB | 30.03KB | ▼ 71.88% |