Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.47MB] [CPU: ▲6.12ms] Passed 4 tests
An overview of server-side resources used by LDD Directory Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 47.31 ▲9.27 |
Dashboard /wp-admin | 5.01 ▲1.66 | 64.57 ▲8.88 |
Posts /wp-admin/edit.php | 5.03 ▲1.68 | 63.18 ▲7.63 |
Add New Post /wp-admin/post-new.php | 7.61 ▲1.72 | 115.01 ▼1.31 |
Media Library /wp-admin/upload.php | 4.92 ▲1.70 | 52.90 ▲20.01 |
Add-ons /wp-admin/edit.php?post_type=directory_listings&page=lddlite-addons | 4.84 | 43.61 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=directory_listings | 5.23 | 52.72 |
Help /wp-admin/edit.php?post_type=directory_listings&page=lddlite-help | 4.84 | 47.86 |
All Listings /wp-admin/edit.php?post_type=directory_listings | 4.98 | 48.84 |
Add Listing /wp-admin/post-new.php?post_type=directory_listings | 5.51 | 64.89 |
Settings /wp-admin/edit.php?post_type=directory_listings&page=lddlite-settings | 4.93 | 48.07 |
Tags /wp-admin/edit-tags.php?taxonomy=listing_tag&post_type=directory_listings | 4.92 | 46.82 |
Server storage [IO: ▲6.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 566 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
lddlite_version |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
lddlite_settings |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for LDD Directory Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,004 ▲258 | 14.28 ▼0.04 | 7.86 ▲6.10 | 39.18 ▲1.77 |
Dashboard /wp-admin | 2,279 ▲91 | 6.01 ▲1.10 | 106.79 ▲2.36 | 38.72 ▼2.53 |
Posts /wp-admin/edit.php | 2,173 ▲84 | 2.44 ▲0.41 | 43.63 ▲3.18 | 35.73 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,576 ▲57 | 23.57 ▲0.30 | 627.87 ▼48.51 | 61.11 ▲9.75 |
Media Library /wp-admin/upload.php | 1,472 ▲84 | 4.38 ▲0.20 | 98.29 ▼1.28 | 41.81 ▼5.04 |
Add-ons /wp-admin/edit.php?post_type=directory_listings&page=lddlite-addons | 1,049 | 1.87 | 29.29 | 70.28 |
Categories /wp-admin/edit-tags.php?taxonomy=listing_category&post_type=directory_listings | 1,587 | 3.39 | 48.14 | 28.93 |
Help /wp-admin/edit.php?post_type=directory_listings&page=lddlite-help | 1,004 | 1.86 | 26.84 | 48.49 |
All Listings /wp-admin/edit.php?post_type=directory_listings | 1,167 | 2.27 | 37.10 | 27.70 |
Add Listing /wp-admin/post-new.php?post_type=directory_listings | 2,947 | 8.16 | 183.03 | 71.91 |
Settings /wp-admin/edit.php?post_type=directory_listings&page=lddlite-settings | 1,361 | 2.42 | 36.25 | 48.23 |
Tags /wp-admin/edit-tags.php?taxonomy=listing_tag&post_type=directory_listings | 1,317 | 2.38 | 31.05 | 25.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
- 94× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ldd-directory-lite/includes/cmb/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function ldl() in wp-content/plugins/ldd-directory-lite/templates/loop/listingshortcode-grid.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ldl() in wp-content/plugins/ldd-directory-lite/templates/frontend/panel-general.php:7
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/ldd-directory-lite/includes/cmb/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ldd-directory-lite/includes/class.tracking.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/ldd-directory-lite/includes/cmb/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/ldd-directory-lite/includes/cmb/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ldd-directory-lite/includes/shortcodes/directory.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ldd-directory-lite/includes/admin/sanitize.php:37
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/ldd-directory-lite/includes/cmb/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Version not formatted correctly
ldd-directory-lite/ldd-directory-lite.php Passed 13 tests
The main PHP file in "LDD Directory Lite" ver. 3.2 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
Powerful and simple to use, add a directory of business or other organizations to your web site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin77,299 lines of code in 391 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,654 | 19,300 | 33,036 |
PHP | 123 | 4,263 | 8,454 | 15,128 |
JavaScript | 27 | 2,205 | 1,435 | 10,321 |
CSS | 22 | 477 | 1,285 | 7,705 |
Sass | 89 | 1,464 | 1,566 | 6,622 |
HTML | 3 | 70 | 0 | 3,186 |
Markdown | 4 | 330 | 0 | 1,001 |
SVG | 1 | 0 | 0 | 288 |
YAML | 1 | 4 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 9 | 11.69% |
▷ Concrete classes | 68 | 88.31% |
▷ Final classes | 0 | 0.00% |
Methods | 688 | |
▷ Static methods | 100 | 14.53% |
▷ Public methods | 582 | 84.59% |
▷ Protected methods | 91 | 13.23% |
▷ Private methods | 15 | 2.18% |
Functions | 210 | |
▷ Named functions | 210 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 19 | 70.37% |
▷ Class constants | 8 | 29.63% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/noimage.png | 4.80KB | 2.77KB | ▼ 42.32% |
public/images/logo.png | 26.26KB | 4.69KB | ▼ 82.13% |
includes/cmb/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
includes/cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
public/plugins/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |