Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/dw-directory/daworks.php+34
Non-static method Daworks_Activator::install_plugins() should not be called statically
Server metrics [RAM: ▲0.29MB] [CPU: ▼2.95ms] Passed 4 tests
Server-side resources used by DW Directory Service
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 38.15 ▼10.13 |
Dashboard /wp-admin | 3.60 ▲0.29 | 47.70 ▼6.60 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 52.66 ▲7.90 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 90.12 ▲1.44 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.87 ▲3.48 |
아이템 관리 /wp-admin/admin.php?page=dw-directory-manage-item-slug | 3.50 | 35.64 |
등록 대기 관리 /wp-admin/admin.php?page=dw-directory-standby-slug | 3.50 | 31.90 |
카테고리 관리 /wp-admin/admin.php?page=dw-directory-manage-cat-slug | 3.50 | 33.87 |
Server storage [IO: ▲2.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 140 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_dw_directory |
wp_dw_directory_category |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
daworks_directory_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for DW Directory Service
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲175 | 13.57 ▼0.72 | 8.90 ▲7.06 | 39.96 ▼6.32 |
Dashboard /wp-admin | 2,234 ▲43 | 5.85 ▲1.00 | 97.11 ▼22.02 | 45.90 ▼0.26 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.05 ▲0.04 | 41.22 ▲4.60 | 44.10 ▲6.61 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.23 ▲0.11 | 670.57 ▲7.20 | 61.25 ▲2.66 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.34 ▲0.10 | 106.50 ▼7.04 | 51.33 ▲2.51 |
아이템 관리 /wp-admin/admin.php?page=dw-directory-manage-item-slug | 1,196 | 2.35 | 31.90 | 77.72 |
등록 대기 관리 /wp-admin/admin.php?page=dw-directory-standby-slug | 906 | 2.10 | 28.06 | 58.36 |
카테고리 관리 /wp-admin/admin.php?page=dw-directory-manage-cat-slug | 1,040 | 1.69 | 25.75 | 69.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_dw_directory_category
- wp_dw_directory
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- daworks_directory_db_version
Smoke tests 25% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/dw-directory/admin/partials/daworks-admin-display.php
- > /wp-content/plugins/dw-directory/admin/partials/daworks-admin-footer.php
- > /wp-content/plugins/dw-directory/public/partials/daworks-public-display.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dw-directory/admin/partials/daworks-admin-main.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/dw-directory/admin/partials/daworks-admin-nav.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dw-directory/admin/partials/daworks-admin-item.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dw-directory/admin/partials/daworks-admin-category.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dw-directory/includes/functions-daworks.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dw-directory-manage-cat-slug
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/dw-directory/public/js/daworks-public.js?ver=1.0.0:73:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&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&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dw-directory-manage-cat-slug
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/admin.php?page=dw-directory-manage-item-slug
- > Console-api (warning) in wp-content/plugins/dw-directory/admin/js/daworks-admin-item.js?ver=6.3.1+42:12
DB 쿼리 오류!
- > GET request to /wp-admin/admin.php?page=dw-directory-manage-cat-slug
- > Javascript (severe) in unknown
/wp-content/plugins/dw-directory/admin/js/daworks-admin-cat.js?ver=6.3.1 60:13 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: sitemap, directory, address book, yellow page
dw-directory/daworks.php 77% from 13 tests
The main file in "DW Directory Service" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("dw-directory.php" instead of "daworks.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected12,511 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 16 | 108 | 34 | 2,726 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 0 | 14 | 2,330 |
PHP | 19 | 351 | 598 | 1,901 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 5 | 168 | 60 | 1,038 |
JSON | 2 | 0 | 0 | 59 |
Markdown | 1 | 23 | 0 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
16 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon-ok.png | 0.99KB | 0.94KB | ▼ 4.75% |
admin/img/corner-success.png | 0.23KB | 0.20KB | ▼ 13.56% |
admin/img/icon-ok@2x.png | 1.63KB | 1.69KB | 0.00% |
admin/img/corner-success@2x.png | 0.34KB | 0.28KB | ▼ 18.00% |
admin/img/icon-warn@2x.png | 1.67KB | 1.96KB | 0.00% |