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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼3.06ms] Passed 4 tests
A check of server-side resources used by Store Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 39.95 ▼1.65 |
Dashboard /wp-admin | 3.54 ▲0.24 | 52.51 ▲1.30 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 47.81 ▲0.88 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 92.32 ▼12.75 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.36 ▲4.12 |
All Stores /wp-admin/edit.php?post_type=store | 3.50 | 31.07 |
Add New /wp-admin/post-new.php?post_type=store | 3.66 | 52.84 |
Options /wp-admin/edit.php?post_type=store&page=sm-options | 3.43 | 32.19 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_store_lat_lng |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Store Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.72 ▼0.01 | 1.71 ▼0.31 | 38.16 ▼8.63 |
Dashboard /wp-admin | 2,220 ▲49 | 5.56 ▼0.11 | 82.51 ▼25.78 | 40.07 ▼8.67 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 1.96 ▼0.04 | 36.24 ▼6.05 | 34.23 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.10 ▼0.07 | 642.86 ▲16.35 | 81.52 ▲26.74 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.18 ▼0.03 | 101.10 ▲1.78 | 42.22 ▼3.42 |
All Stores /wp-admin/edit.php?post_type=store | 1,137 | 1.98 | 31.01 | 28.01 |
Add New /wp-admin/post-new.php?post_type=store | 2,848 | 7.74 | 176.47 | 73.86 |
Options /wp-admin/edit.php?post_type=store&page=sm-options | 920 | 1.72 | 31.05 | 25.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 no errors were found, this is by no means 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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/store-manager/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/store-manager/store-manager.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/store-manager/includes/template-single-store.php:1
- > PHP Fatal error
Uncaught Error: Class 'Map_Supplier' not found in wp-content/plugins/store-manager/includes/class-supplier-google.php:3
- > PHP Fatal error
Uncaught Error: Class 'Map_Supplier' not found in wp-content/plugins/store-manager/includes/class-supplier-openstreetmap.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: store, distance, openstreetmap, custom post, radius...
store-manager/store-manager.php Passed 13 tests
The main PHP file in "Store Manager" ver. 1.0.2.2 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Store manager with control over opening hours, location, images and much more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,780 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 2,532 | 588 | 8,669 |
PHP | 7 | 303 | 71 | 1,089 |
CSS | 3 | 84 | 15 | 656 |
SVG | 1 | 1 | 1 | 237 |
PO File | 1 | 55 | 59 | 129 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 40.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 18 | 35.29% |
▷ Public methods | 47 | 92.16% |
▷ Protected methods | 2 | 3.92% |
▷ Private methods | 2 | 3.92% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
leaflet/routing-machine/routing-icon.png | 0.77KB | 0.49KB | ▼ 36.62% |
leaflet/images/layers.png | 1.47KB | 1.05KB | ▼ 28.36% |
leaflet/routing-machine/leaflet.routing.icons.png | 3.19KB | 2.62KB | ▼ 17.99% |
leaflet/images/marker-icon-2x.png | 3.94KB | 2.53KB | ▼ 35.71% |
leaflet/images/layers-2x.png | 2.83KB | 1.67KB | ▼ 41.10% |