Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▼1.17ms] Passed 4 tests
Analyzing server-side resources used by WP Store Locator - Extenders
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 43.76 ▲1.28 |
Dashboard /wp-admin | 3.93 ▲0.62 | 49.10 ▼1.32 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 59.51 ▲9.60 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.56 | 90.96 ▼8.24 |
Media Library /wp-admin/upload.php | 3.84 ▲0.62 | 40.21 ▲3.59 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 4.05 | 43.13 |
Server storage [IO: ▲4.28MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 401 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_gdpr |
theysaidso_admin_options |
fs_active_plugins |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
fs_debug_mode |
widget_recent-posts |
can_compress_scripts |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Store Locator - Extenders
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 14.68 ▼0.05 | 1.73 ▼0.02 | 30.48 ▼13.59 |
Dashboard /wp-admin | 2,219 ▲41 | 5.65 ▼0.04 | 84.75 ▼34.12 | 43.43 ▲1.36 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.16 ▲0.15 | 39.67 ▲1.72 | 39.00 ▲4.63 |
Add New Post /wp-admin/post-new.php | 1,546 ▲19 | 22.97 ▼0.26 | 660.05 ▼13.71 | 64.04 ▲6.73 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.18 ▼0.03 | 100.06 ▼11.75 | 45.41 ▼4.32 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,085 | 1.68 | 28.22 | 29.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-store-locator-extenders/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- fs_gdpr
- widget_recent-posts
- fs_debug_mode
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-store-locator-extenders/include/wpsl-extenders-upgrade.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-store-locator-extenders/templates/ext-default.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-store-locator-extenders/templates/ext-store-listings-below.php:4
- > PHP Fatal error
Uncaught Error: Class 'DebugMyPluginPanel' not found in wp-content/plugins/wp-store-locator-extenders/include/class.dmppanels.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wpsl_ext_maybe_define_constant() in wp-content/plugins/wp-store-locator-extenders/include/class-WPSL_Extenders.php:4
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in wp-store-locator-extenders/assets to your readme.txt
wp-store-locator-extenders/wp-store-locator-extenders.php Passed 13 tests
The principal PHP file in "WP Store Locator - Extenders" v. 1.3.2 is loaded by WordPress automatically on each request
16 characters long description:
Manage the users
Code Analysis 97% from 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 detected38,965 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 8,445 | 18,351 | 34,929 |
JavaScript | 7 | 358 | 211 | 2,705 |
CSS | 17 | 116 | 50 | 740 |
PO File | 1 | 267 | 361 | 591 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 80.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,362 | |
▷ Static methods | 192 | 14.10% |
▷ Public methods | 976 | 71.66% |
▷ Protected methods | 18 | 1.32% |
▷ Private methods | 368 | 27.02% |
Functions | 121 | |
▷ Named functions | 121 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
191 PNG files occupy 0.57MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/event-icons/Turn off.png | 3.33KB | 2.15KB | ▼ 35.54% |
images/event-icons/House.png | 3.00KB | 1.78KB | ▼ 40.58% |
images/event-icons/Knowledge.png | 2.54KB | 1.95KB | ▼ 23.37% |
images/event-icons/Business.png | 4.36KB | 2.38KB | ▼ 45.35% |
images/event-icons/Yin-yan.png | 2.42KB | 2.18KB | ▼ 9.81% |