Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼297.53ms] Passed 4 tests
This is a short check of server-side resources used by Store Locator Plus - Janitor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.84 ▲3.12 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.73 ▲0.51 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.68 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.97 ▼1,185.15 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 25.16 ▼5.80 |
Server storage [IO: ▲0.04MB] [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: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Store Locator Plus - Janitor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.92 ▲0.46 | 5.60 ▼0.51 | 2.90 ▲0.82 |
Dashboard /wp-admin | 2,888 ▲28 | 6.13 ▼0.02 | 118.53 ▼11.76 | 151.00 ▼8.54 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▲0.00 | 62.24 ▼2.30 | 138.28 ▼7.36 |
Add New Post /wp-admin/post-new.php | 1,758 ▲6 | 21.41 ▼0.08 | 443.46 ▲4.41 | 154.24 ▲0.02 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.53 ▲0.02 | 134.27 ▼5.25 | 188.93 ▲1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'SLPlus_BaseClass_Object' not found in wp-content/plugins/store-locator-plus-janitor/include/class.admin.functions.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-locator-plus-janitor/slp-janitor.php:78
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: google maps, locator, cleaning, database, janitor...
store-locator-plus-janitor/slp-janitor.php 85% from 13 tests
Analyzing the main PHP file in "Store Locator Plus - Janitor" version 4.9
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("store-locator-plus-janitor.php" instead of "slp-janitor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected618 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 148 | 218 | 595 |
JavaScript | 2 | 2 | 9 | 16 |
CSS | 1 | 2 | 10 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 20 | 68.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 31.03% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin