Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-pde/main/pde-plugin.php+1894
Declaration of Walker_PDE_Duplicate::start_lvl(&$output) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array)
Server metrics [RAM: ▼1.19MB] [CPU: ▼185.18ms] Passed 4 tests
An overview of server-side resources used by WpPDE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.44 ▼0.40 | 10.65 ▼24.21 |
Dashboard /wp-admin | 2.46 ▼0.60 | 7.24 ▼37.86 |
Posts /wp-admin/edit.php | 2.46 ▼0.65 | 7.06 ▼37.54 |
Add New Post /wp-admin/post-new.php | 2.46 ▼2.98 | 7.77 ▼638.40 |
Media Library /wp-admin/upload.php | 2.46 ▼0.54 | 7.15 ▼26.91 |
Server storage [IO: ▲20.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 551 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WpPDE
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲125 | 15.90 ▼0.15 | 8.05 ▼2.84 | 47.20 ▼0.52 |
Dashboard /wp-admin | 2,979 ▲48 | 5.94 ▼0.01 | 127.35 ▼10.53 | 136.68 ▲17.67 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.74 ▲0.01 | 62.48 ▼0.98 | 93.94 ▲5.46 |
Add New Post /wp-admin/post-new.php | 1,685 ▲15 | 18.86 ▼0.34 | 387.47 ▲7.64 | 111.21 ▼1.67 |
Media Library /wp-admin/upload.php | 1,767 ▼43 | 5.01 ▼0.02 | 130.20 ▼8.20 | 141.86 ▲27.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-pde/main/pde-plugin.php+1894
Declaration of Walker_PDE_Duplicate::start_lvl(&$output) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array)
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-pde/main/js/ace-builds/kitchen-sink/docs/php.php
- > /wp-content/plugins/wp-pde/main/plupload.php
- 69× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_style() on null in wp-content/plugins/wp-pde/main/templates/form-item-markup-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-pde/main/templates/form-item-widget-parameters.php:4
- > PHP Notice
Undefined variable: item_id in wp-content/plugins/wp-pde/main/templates/form-item-radio.php on line 3
- > PHP Notice
Undefined variable: item in wp-content/plugins/wp-pde/main/templates/form-item-radio-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pde/main/export.php:44
- > PHP Notice
Undefined variable: item in wp-content/plugins/wp-pde/main/templates/form-item-label-form.php on line 2
- > PHP Notice
Undefined variable: item_id in wp-content/plugins/wp-pde/main/templates/form-item-dropdown.php on line 3
- > PHP Notice
Undefined variable: item_id in wp-content/plugins/wp-pde/main/templates/form-item-label.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-pde/main/pde-date-picker.php:104
- > PHP Notice
Undefined variable: export_mode in wp-content/plugins/wp-pde/main/templates/plugin.php.php on line 4
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (WpPDE screen.), #2 (Defining widget parameters.), #3 (A widget with form items added.), #4 (The editor)
wp-pde/wp-pde.php Passed 13 tests
This is the main PHP file of "WpPDE" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Plugin development environment for Wordpress
Code Analysis 3% from 3 tests
File types 0% from 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
Please fix the following items
- Do not distribute dangerous files with your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/wp-pde/main/js/ace-builds/kitchen-sink/docs/powershell.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 368 | 38,148 | 26,267 | 209,354 |
PHP | 47 | 1,475 | 2,227 | 8,117 |
CSS | 10 | 324 | 188 | 1,868 |
HTML | 7 | 73 | 10 | 803 |
Markdown | 18 | 259 | 0 | 469 |
Bourne Shell | 2 | 22 | 5 | 74 |
SVG | 1 | 9 | 0 | 74 |
JSON | 1 | 0 | 0 | 66 |
Scala | 1 | 7 | 1 | 61 |
liquid | 1 | 18 | 0 | 58 |
XML | 1 | 0 | 0 | 55 |
diff | 1 | 5 | 29 | 35 |
Tcl/Tk | 1 | 5 | 5 | 30 |
Groovy | 1 | 11 | 1 | 29 |
YAML | 1 | 5 | 2 | 28 |
Perl | 1 | 4 | 3 | 25 |
Go | 1 | 4 | 8 | 22 |
LESS | 1 | 6 | 2 | 20 |
Lua | 1 | 7 | 10 | 19 |
TeX | 1 | 1 | 2 | 19 |
PowerShell | 1 | 5 | 1 | 18 |
CoffeeScript | 1 | 3 | 3 | 16 |
Sass | 1 | 4 | 0 | 16 |
Haxe | 1 | 1 | 1 | 15 |
Clojure | 1 | 1 | 4 | 14 |
GLSL | 1 | 4 | 3 | 13 |
Python | 1 | 3 | 3 | 13 |
C++ | 1 | 2 | 1 | 10 |
OCaml | 1 | 3 | 5 | 10 |
Ruby | 1 | 2 | 1 | 9 |
Java | 1 | 2 | 7 | 6 |
SQL | 1 | 0 | 0 | 6 |
JSX | 1 | 0 | 4 | 5 |
XQuery | 1 | 1 | 0 | 5 |
C# | 1 | 0 | 1 | 3 |
ColdFusion | 1 | 2 | 1 | 2 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 39.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 330 | |
▷ Static methods | 130 | 39.39% |
▷ Public methods | 316 | 95.76% |
▷ Protected methods | 11 | 3.33% |
▷ Private methods | 3 | 0.91% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 11 | 50.00% |
▷ Class constants | 11 | 50.00% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
34 PNG files occupy 0.95MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
main/js/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
screenshot-3.png | 32.56KB | 7.42KB | ▼ 77.21% |
main/styles/smoothness/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
main/js/ace-builds/textarea/images/body_background.png | 2.94KB | 0.58KB | ▼ 80.32% |
main/images/arrows-dark.png | 0.48KB | 0.24KB | ▼ 51.11% |