Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.54MB] [CPU: ▼46.59ms] Passed 4 tests
Server-side resources used by TZ Google Map
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.01 | 9.31 ▼32.09 |
Dashboard /wp-admin | 2.47 ▼0.84 | 10.90 ▼38.95 |
Posts /wp-admin/edit.php | 2.47 ▼0.89 | 12.31 ▼36.16 |
Add New Post /wp-admin/post-new.php | 2.47 ▼3.42 | 13.76 ▼79.15 |
Media Library /wp-admin/upload.php | 2.47 ▼0.76 | 11.36 ▼21.04 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_widget_tz_googlemap |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TZ Google Map
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.47 ▼1.08 | 1.84 ▼0.16 | 39.10 ▼4.54 |
Dashboard /wp-admin | 2,228 ▲40 | 5.23 ▲0.32 | 101.52 ▼22.54 | 38.13 ▼5.70 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.44 ▲0.43 | 45.02 ▲10.37 | 35.54 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,689 ▲156 | 22.90 ▼0.56 | 608.70 ▼58.52 | 29.92 ▼42.98 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.50 ▲0.34 | 96.82 ▼10.74 | 40.51 ▼6.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in TZ_Googlemap_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_widget_tz_googlemap
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tz-google-map/widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (/trunk/screenshot-1.jpg), #2 (/trunk/screenshot-2.jpg), #3 (/trunk/screenshot-3.jpg)
tz-google-map/index.php 85% from 13 tests
The primary PHP file in "TZ Google Map" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 141 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tz-google-map.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,013 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 16 | 13 | 599 |
PHP | 2 | 73 | 81 | 363 |
JavaScript | 1 | 16 | 0 | 50 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin