Benchmarks
Plugin footprint 83% 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: ▼8.25ms] Passed 4 tests
A check of server-side resources used by Smooth Locations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.61 ▼4.49 |
Dashboard /wp-admin | 3.39 ▲0.05 | 43.43 ▼15.24 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.80 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 83.90 ▼11.91 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.55 ▲3.62 |
Locations /wp-admin/edit.php?post_type=smooth_location | 3.36 | 33.63 |
Add New /wp-admin/post-new.php?post_type=smooth_location | 3.35 | 44.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
bit_smooth_locations_version |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smooth Locations
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.47 ▲0.17 | 1.87 ▲0.20 | 40.43 ▼2.72 |
Dashboard /wp-admin | 2,236 ▲51 | 4.82 ▼1.02 | 112.97 ▲8.36 | 43.47 ▼0.58 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▼0.00 | 39.04 ▼4.36 | 35.59 ▼5.30 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.26 ▼0.27 | 644.75 ▲10.77 | 51.11 ▼2.00 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.24 ▼0.01 | 101.61 ▲0.99 | 42.30 ▲0.54 |
Locations /wp-admin/edit.php?post_type=smooth_location | 1,077 | 1.99 | 35.77 | 32.10 |
Add New /wp-admin/post-new.php?post_type=smooth_location | 1,502 | 3.45 | 68.61 | 49.22 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- bit_smooth_locations_version
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/smooth-locations/smooth_locations.php:33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=smooth_location
- > Network (severe)
wp-content/plugins/smooth-locations/js/smooth_locations_admin.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=smooth_location
- > Console-api (warning) in unknown
http://maps.google.com/maps/api/js?sensor=true 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
smooth-locations/smooth_locations.php 92% from 13 tests
Analyzing the main PHP file in "Smooth Locations" version 1.1
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("smooth-locations.php" instead of "smooth_locations.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin361 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 36 | 223 |
JavaScript | 2 | 23 | 2 | 136 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG images were found in this plugin