Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲2.11ms] Passed 4 tests
This is a short check of server-side resources used by User Map
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 48.85 ▲9.06 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.12 ▼3.16 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 54.76 ▲7.61 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.58 ▼0.05 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 42.42 ▲4.03 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_useronline |
wp_usermap |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for User Map
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.67 ▼0.73 | 13.76 ▲12.12 | 46.33 ▲1.99 |
Dashboard /wp-admin | 2,192 ▲18 | 5.52 ▼0.12 | 87.50 ▼5.33 | 39.65 ▼3.03 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.01 | 33.87 ▼5.52 | 37.90 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 22.99 ▲0.05 | 646.12 ▲36.45 | 58.61 ▼0.53 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.03 | 96.92 ▼7.52 | 41.60 ▼2.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_useronline
- wp_usermap
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/usermap/userMap.php:21
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/usermap/installScript.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/usermap/default.php:25
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/usermap/installScript.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% 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 require attention:
- Donate link: Invalid url: ""
- Tags: Too many tags (34 tag instead of maximum 10); only the first 5 tags are used in your directory listing
usermap/userMap.php 77% from 13 tests
The main file in "User Map" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 298 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("usermap.php" instead of "userMap.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin696 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 177 | 64 | 618 |
JavaScript | 2 | 3 | 1 | 78 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_liveevent.png | 2.24KB | 1.34KB | ▼ 39.93% |
images/red-dot.png | 1.31KB | 1.07KB | ▼ 18.25% |
images/userRegister-icon35x35.png | 2.07KB | 1.62KB | ▼ 22.05% |