Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.28ms] Passed 4 tests
This is a short check of server-side resources used by Smooth Directory
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 36.37 ▼5.23 |
Dashboard /wp-admin | 3.53 ▲0.18 | 51.80 ▼10.24 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 55.03 ▲7.01 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 92.66 ▼1.60 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.23 ▲3.96 |
Settings /wp-admin/edit.php?post_type=businesses&page=smooth-directory-settings | 3.37 | 35.81 |
Categories /wp-admin/edit-tags.php?taxonomy=business_category&post_type=businesses | 3.39 | 39.60 |
Add New Business /wp-admin/post-new.php?post_type=businesses | 3.45 | 49.81 |
Businesses /wp-admin/edit.php?post_type=businesses | 3.44 | 41.82 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Smooth Directory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,051 ▲290 | 14.96 ▲0.23 | 4.94 ▲3.18 | 41.29 ▼4.31 |
Dashboard /wp-admin | 2,371 ▲191 | 6.22 ▲0.56 | 109.63 ▲11.21 | 38.62 ▼2.58 |
Posts /wp-admin/edit.php | 2,296 ▲196 | 3.36 ▲1.33 | 51.44 ▲17.14 | 31.83 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,562 ▲31 | 23.26 ▲2.31 | 621.76 ▼8.21 | 36.88 ▼19.19 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.27 ▲0.08 | 79.04 ▼16.32 | 39.66 ▼1.57 |
Settings /wp-admin/edit.php?post_type=businesses&page=smooth-directory-settings | 1,025 | 3.06 | 38.39 | 25.87 |
Categories /wp-admin/edit-tags.php?taxonomy=business_category&post_type=businesses | 1,476 | 3.22 | 39.71 | 30.24 |
Add New Business /wp-admin/post-new.php?post_type=businesses | 1,935 | 3.69 | 64.39 | 34.16 |
Businesses /wp-admin/edit.php?post_type=businesses | 1,275 | 3.35 | 43.48 | 27.77 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/smooth-directory/public/partials/smooth-directory-public-display.php
- > /wp-content/plugins/smooth-directory/admin/partials/smooth-directory-admin-display.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function locate_template() in wp-content/plugins/smooth-directory/public/taxonomy-business_category.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/smooth-directory/admin/partials/smooth-directory-admin-display-metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smooth-directory/admin/partials/smooth-directory-admin-options.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function locate_template() in wp-content/plugins/smooth-directory/public/archive-businesses.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/smooth-directory/public/partials/filter-row.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=businesses
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).wpColorPicker is not a function" "TypeError: $(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/smooth-directory/admin/js/smooth-directory-admin.js?ver=1.0.0:5:42)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=businesses
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).wpColorPicker is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== smooth-directory ===
)
smooth-directory/smooth-directory.php Passed 13 tests
The principal PHP file in "Smooth Directory" v. 1.2.3 is loaded by WordPress automatically on each request
47 characters long description:
A simple and flexible business directory plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin932 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 223 | 655 | 787 |
CSS | 2 | 22 | 8 | 105 |
Markdown | 1 | 17 | 0 | 28 |
JavaScript | 2 | 2 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.58MB with 0.28MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 206.27KB | 79.58KB | ▼ 61.42% |
assets/banner-772x250.png | 2.22KB | 1.69KB | ▼ 23.67% |
assets/banner-1544x500.png | 4.36KB | 2.03KB | ▼ 53.44% |
assets/screenshot-1.png | 381.31KB | 160.66KB | ▼ 57.87% |