Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.11ms] Passed 4 tests
An overview of server-side resources used by Store Directory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.45 ▼8.36 |
Dashboard /wp-admin | 3.37 ▲0.07 | 56.35 ▲2.93 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.15 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.36 ▼12.64 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.33 ▲0.09 |
Add New /wp-admin/post-new.php?post_type=store | 3.34 | 63.70 |
Stores /wp-admin/edit.php?post_type=store | 3.34 | 34.55 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_wpsd_widget |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Store Directory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲194 | 14.29 ▼0.06 | 31.31 ▲29.25 | 39.41 ▼18.17 |
Dashboard /wp-admin | 2,222 ▲42 | 5.64 ▲0.07 | 94.32 ▲0.50 | 41.59 ▲0.05 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▲0.06 | 33.10 ▼10.67 | 37.32 ▼4.14 |
Add New Post /wp-admin/post-new.php | 1,558 ▲29 | 18.52 ▼4.46 | 615.94 ▲1.84 | 67.38 ▲18.46 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.16 ▼0.05 | 97.78 ▼6.65 | 40.91 ▼3.92 |
Add New /wp-admin/post-new.php?post_type=store | 1,515 | 3.57 | 73.38 | 70.78 |
Stores /wp-admin/edit.php?post_type=store | 1,100 | 1.96 | 30.88 | 31.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_wpsd_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-directory/lib/admin.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/store-directory/lib/class-wpsd-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/store-directory/store-directory.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-directory/lib/class-wpsd-search.php:147
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-directory/lib/class-wpsd-post-meta.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-directory/lib/class-wpsd-post-type.php:75
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=store
- > Console-api (warning) in unknown
http://maps.google.com/maps/api/js?sensor=false&ver=1.0 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: location, directory, store, google maps, maps
store-directory/store-directory.php Passed 13 tests
Analyzing the main PHP file in "Store Directory" version 0.1
45 characters long description:
A simple plugin for keeping a store directory
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin457 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 84 | 88 | 354 |
JavaScript | 1 | 14 | 5 | 103 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 31 | 91.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.82% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin