Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼9.80ms] Passed 4 tests
Analyzing server-side resources used by WP Nearby Places Basic
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 21.57 ▼19.25 |
Dashboard /wp-admin | 3.45 ▲0.15 | 52.70 ▼2.63 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.24 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 85.90 ▼16.40 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.84 ▼0.91 |
Settings /wp-admin/admin.php?page=mynearbyplaces_settings | 3.40 | 37.60 |
WP Nearby Places /wp-admin/admin.php?page=mynearbyplaces_settings_page | 3.36 | 59.26 |
Server storage [IO: ▲3.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mynearbyplaces_sub_category |
wp_mynearbyplaces_category |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Nearby Places Basic
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,164 ▲403 | 15.95 ▲1.60 | 22.74 ▲20.90 | 48.63 ▲4.34 |
Dashboard /wp-admin | 2,420 ▲246 | 6.31 ▲0.65 | 109.62 ▲9.35 | 94.34 ▲48.37 |
Posts /wp-admin/edit.php | 2,352 ▲249 | 3.60 ▲1.58 | 51.39 ▲10.06 | 71.19 ▲36.13 |
Add New Post /wp-admin/post-new.php | 1,594 ▲68 | 23.27 ▲0.08 | 651.79 ▼21.24 | 37.19 ▼16.78 |
Media Library /wp-admin/upload.php | 1,485 ▲85 | 4.25 ▲0.07 | 86.64 ▼44.95 | 81.39 ▲20.80 |
Settings /wp-admin/admin.php?page=mynearbyplaces_settings | 1,949 | 11.07 | 334.40 | 98.85 |
WP Nearby Places /wp-admin/admin.php?page=mynearbyplaces_settings_page | 2,314 | 13.93 | 419.86 | 87.47 |
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
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_mynearbyplaces_category
- wp_mynearbyplaces_sub_category
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mynearbyplaces_settings
- > Warning in wp-content/plugins/wp-nearby-places-basic/nearbyplaces.php+429
Use of undefined constant RSSFI_TEXT - assumed 'RSSFI_TEXT' (this will throw an Error in a future version of PHP)
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Requires at least: Version format is invalid
- Screenshots: Add images for these screenshots: #1 (Installed Plugin displays here - trunk/images/screenshot-1.jpg), #2 (Plugin Settings Window - trunk/images/screenshot-2.jpg)
wp-nearby-places-basic/nearbyplaces.php 92% from 13 tests
"WP Nearby Places Basic" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-nearby-places-basic.php" instead of "nearbyplaces.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,501 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 501 | 1,078 | 2,430 |
PHP | 4 | 159 | 44 | 809 |
CSS | 3 | 57 | 5 | 262 |
PHP code Passed 2 tests
A short review 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.12 |
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 | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.37MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/upgrade_to_pro.png | 37.65KB | 11.93KB | ▼ 68.31% |
images/no-image.png | 2.68KB | 1.62KB | ▼ 39.55% |
images/clusterpin.png | 1.72KB | 1.07KB | ▼ 37.82% |
images/featureimage4.png | 68.96KB | 23.86KB | ▼ 65.40% |
images/help.png | 2.01KB | 1.14KB | ▼ 43.38% |