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.03MB] [CPU: ▼5.25ms] Passed 4 tests
Server-side resources used by TCBD Google Map
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 21.91 ▼14.72 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.08 ▼4.23 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.14 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 90.97 ▲0.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.10 ▲3.66 |
TCBD Google Map /wp-admin/plugins.php?page=TCBD_Google_Map_settings | 3.25 | 33.38 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for TCBD Google Map
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲239 | 16.01 ▲1.77 | 47.97 ▲46.18 | 39.12 ▼5.39 |
Dashboard /wp-admin | 2,209 ▲21 | 5.84 ▲0.96 | 100.28 ▼6.37 | 44.69 ▲3.83 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.04 | 35.54 ▼0.22 | 34.50 ▲2.25 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.29 ▼4.82 | 592.20 ▼64.87 | 61.79 ▼3.96 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▲0.06 | 97.51 ▼1.22 | 41.45 ▼1.68 |
TCBD Google Map /wp-admin/plugins.php?page=TCBD_Google_Map_settings | 1,015 | 2.07 | 25.79 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
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
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (57 tag instead of maximum 10)
tcbd-google-map/plugin-hook.php 92% from 13 tests
The main PHP script in "TCBD Google Map" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("tcbd-google-map.php" instead of "plugin-hook.php")
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 plugin720 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 84 | 41 | 642 |
JavaScript | 2 | 1 | 8 | 67 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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.43MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/style-3.png | 70.58KB | 28.48KB | ▼ 59.65% |
img/style-1.png | 181.13KB | 60.68KB | ▼ 66.50% |
js/icon.png | 5.97KB | 3.53KB | ▼ 40.82% |
img/style-2.png | 130.75KB | 56.89KB | ▼ 56.49% |
img/style-4.png | 49.48KB | 27.79KB | ▼ 43.83% |