Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼294.37ms] Passed 4 tests
This is a short check of server-side resources used by W-DALIL
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 44.56 ▼9.03 |
Dashboard /wp-admin | 3.65 ▲0.25 | 33.29 ▲1.47 |
Posts /wp-admin/edit.php | 3.88 ▲0.24 | 45.28 ▲8.67 |
Add New Post /wp-admin/post-new.php | 7.12 ▲0.15 | 93.63 ▼1,170.26 |
Media Library /wp-admin/upload.php | 3.54 ▲0.24 | 24.79 ▲0.36 |
Dalil Cities /wp-admin/edit-tags.php?taxonomy=dalil_city&post_type=dalil | 3.54 | 25.77 |
Widgets /wp-admin/widgets.php | 5.46 | 58.89 |
View Dalil Items /wp-admin/edit.php?post_type=dalil | 3.64 | 25.33 |
FW Dalil /wp-admin/options-general.php?page=fw-dalil | 3.48 | 20.81 |
Add New Dalil item /wp-admin/post-new.php?post_type=dalil | 3.81 | 43.23 |
Menus /wp-admin/nav-menus.php | 3.90 | 33.93 |
Dalil Categories /wp-admin/edit-tags.php?taxonomy=dalil_cat&post_type=dalil | 3.54 | 25.60 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for W-DALIL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,890 ▲168 | 15.93 ▲0.60 | 6.22 ▲0.61 | 2.58 ▲0.17 |
Dashboard /wp-admin | 2,954 ▲103 | 6.17 ▼0.00 | 115.05 ▼17.75 | 154.00 ▼7.36 |
Posts /wp-admin/edit.php | 2,753 ▲59 | 3.25 ▲0.01 | 65.33 ▲2.73 | 138.73 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,712 ▲1 | 17.93 ▼3.39 | 394.47 ▼68.18 | 156.76 ▲1.08 |
Media Library /wp-admin/upload.php | 1,760 ▲59 | 5.54 ▲0.07 | 144.41 ▲3.59 | 178.38 ▼6.94 |
Dalil Cities /wp-admin/edit-tags.php?taxonomy=dalil_city&post_type=dalil | 1,676 | 2.77 | 54.24 | 108.99 |
Widgets /wp-admin/widgets.php | 2,598 | 25.56 | 578.47 | 185.43 |
View Dalil Items /wp-admin/edit.php?post_type=dalil | 1,433 | 2.92 | 59.22 | 111.38 |
FW Dalil /wp-admin/options-general.php?page=fw-dalil | 1,091 | 2.37 | 52.37 | 107.02 |
Add New Dalil item /wp-admin/post-new.php?post_type=dalil | 2,330 | 4.02 | 96.67 | 151.52 |
Menus /wp-admin/nav-menus.php | 2,410 | 3.25 | 81.10 | 135.50 |
Dalil Categories /wp-admin/edit-tags.php?taxonomy=dalil_cat&post_type=dalil | 1,684 | 2.77 | 55.78 | 116.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=fw-dalil
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=fw-dalil
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/w-dalil/includes/w-dalil-shortcodes.php:2
- > PHP Warning
include_once(DALIL_INCLUDESw-dalil-get-informatrion.php): failed to open stream: No such file or directory in wp-content/plugins/w-dalil/includes/w-dalil-functions.php on line 2
- > PHP Warning
include_once(): Failed opening 'DALIL_INCLUDESw-dalil-get-informatrion.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/w-dalil/includes/w-dalil-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/w-dalil/includes/w-dalil-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/w-dalil/w-dalil.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w-dalil/includes/w-dalil-init.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w-dalil/includes/w-dalil-metabox.php:2
- > PHP Warning
Use of undefined constant DALIL_INCLUDES - assumed 'DALIL_INCLUDES' (this will throw an Error in a future version of PHP) in wp-content/plugins/w-dalil/includes/w-dalil-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w-dalil/includes/w-dalil-functions.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
w-dalil/w-dalil.php 92% from 13 tests
Analyzing the main PHP file in "W-DALIL" version 2.0
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,598 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 255 | 101 | 1,204 |
PO File | 2 | 87 | 97 | 196 |
CSS | 1 | 2 | 0 | 148 |
SVG | 1 | 0 | 0 | 50 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 12 | |
▷ Static methods | 4 | 33.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/file/print_logo.png | 14.40KB | 7.42KB | ▼ 48.45% |