Benchmarks
Plugin footprint 83% from 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.15MB] [CPU: ▼1.19ms] Passed 4 tests
A check of server-side resources used by DS Directory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.48 ▼2.97 |
Dashboard /wp-admin | 3.46 ▲0.16 | 55.75 ▲4.59 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 51.29 ▲2.76 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 86.36 ▼9.16 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 41.40 ▲6.76 |
All directory items /wp-admin/edit.php?post_type=dsdi_item | 3.43 | 35.38 |
Add New /wp-admin/post-new.php?post_type=dsdi_item | 3.53 | 55.54 |
Directories /wp-admin/edit-tags.php?taxonomy=ds_directory&post_type=dsdi_item | 3.39 | 40.73 |
Settings /wp-admin/edit.php?post_type=dsdi_item&page=ds-directory | 3.51 | 36.67 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 10 new options
New WordPress options |
---|
ds_directory_children |
widget_recent-posts |
dsdi_version |
default_ds_directory |
db_upgraded |
widget_recent-comments |
dsdi_settings |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for DS Directory
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.30 ▼0.29 | 1.62 ▼0.00 | 44.68 ▲0.03 |
Dashboard /wp-admin | 2,217 ▲40 | 5.65 ▼0.04 | 84.22 ▼5.13 | 69.33 ▲23.79 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.00 ▼0.00 | 39.30 ▼0.40 | 35.73 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 17.50 ▼5.88 | 771.18 ▲173.88 | 55.93 ▲1.67 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.25 ▲0.03 | 99.90 ▼1.59 | 66.15 ▲20.60 |
All directory items /wp-admin/edit.php?post_type=dsdi_item | 1,115 | 1.94 | 30.57 | 29.40 |
Add New /wp-admin/post-new.php?post_type=dsdi_item | 2,432 | 8.10 | 217.29 | 129.36 |
Directories /wp-admin/edit-tags.php?taxonomy=ds_directory&post_type=dsdi_item | 1,406 | 2.15 | 26.91 | 35.38 |
Settings /wp-admin/edit.php?post_type=dsdi_item&page=ds-directory | 2,377 | 4.40 | 144.87 | 56.07 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- ds_directory_children
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- default_ds_directory
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/ds-directory/templates/directories-header.php:4
- > PHP Fatal error
Uncaught Error: Class 'DS_DIRECTORY' not found in wp-content/plugins/ds-directory/templates/dsdi_item.php:12
- > PHP Fatal error
Uncaught Error: Class 'DS_DIRECTORY' not found in wp-content/plugins/ds-directory/inc/dynamic-styles.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: catalog, mall directory, car directory, services, directory...
ds-directory/ds-directory.php Passed 13 tests
"DS Directory" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
DS Directory adds to your WordPress installation a clean and flexible directory (e.g. Shops, Services, Products, Cars).
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
Everything looks great! No dangerous files found in this plugin5,803 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 554 | 151 | 2,078 |
Sass | 9 | 377 | 5 | 1,997 |
PHP | 13 | 151 | 352 | 1,469 |
JavaScript | 4 | 54 | 100 | 244 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 4 | 13.33% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-xs.png | 3.05KB | 0.62KB | ▼ 79.64% |