Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wptermingermany/model/wptg_monthwidget.class.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; wptg_monthwidget has a deprecated constructor
Server metrics [RAM: ▼1.70MB] [CPU: ▼47.61ms] Passed 4 tests
Server-side resources used by wpTerminGermany
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 7.75 ▼30.75 |
Dashboard /wp-admin | 2.31 ▼1.00 | 11.39 ▼39.18 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 11.45 ▼39.15 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.58 | 12.43 ▼81.35 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 10.79 ▼23.83 |
Konfiguration /wp-admin/edit.php?post_type=wptg_events&page=wptg-configuration | 2.31 | 12.34 |
Termine /wp-admin/edit.php?post_type=wptg_events | 2.31 | 13.38 |
Kalender /wp-admin/edit-tags.php?taxonomy=event_categorie&post_type=wptg_events | 2.31 | 11.38 |
Add New /wp-admin/post-new.php?post_type=wptg_events | 2.31 | 13.05 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 57 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wptg_import |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_wptg_monthwidget |
Browser metrics Passed 4 tests
Checking browser requirements for wpTerminGermany
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲183 | 14.05 ▼0.35 | 8.88 ▲7.02 | 40.23 ▼8.53 |
Dashboard /wp-admin | 2,256 ▲68 | 4.94 ▲0.06 | 101.12 ▼7.78 | 40.50 ▼4.69 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.10 ▲0.09 | 44.21 ▲8.28 | 36.57 ▲4.02 |
Add New Post /wp-admin/post-new.php | 1,565 ▲27 | 18.14 ▼5.09 | 656.60 ▼25.21 | 52.02 ▼14.40 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.22 ▲0.01 | 98.00 ▼11.78 | 41.41 ▼7.81 |
Konfiguration /wp-admin/edit.php?post_type=wptg_events&page=wptg-configuration | 880 | 1.79 | 26.71 | 24.76 |
Termine /wp-admin/edit.php?post_type=wptg_events | 1,162 | 2.07 | 34.09 | 28.65 |
Kalender /wp-admin/edit-tags.php?taxonomy=event_categorie&post_type=wptg_events | 1,315 | 2.28 | 28.35 | 33.37 |
Add New /wp-admin/post-new.php?post_type=wptg_events | 2,760 | 7.99 | 175.87 | 76.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wptg_monthwidget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure failed, leaving 1 table in the database
- wp_wptg_import
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_wptg_monthwidget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wptg_events
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wptg_monthwidget is deprecated since version 4.3.0! Use __construct() instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wptg_events
- > Notice in wp-content/plugins/wptermingermany/lib/helper_functions.inc.php+49
Undefined index: id
- > GET request to /wp-admin/edit.php?post_type=wptg_events&page=wptg-configuration
- > Notice in wp-content/plugins/wptermingermany/lib/helper_functions.inc.php+66
Undefined index: size
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wptg_events
- > Notice in wp-content/plugins/wptermingermany/views/Form/datepicker.phtml+11
Undefined index: placeholder
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 fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wptermingermany/lib/fullcalendar-1.6.4/demos/json-events.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wptermingermany/wptermingermany.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wptermingermany/model/wptg_monthwidget.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wptermingermany/wptermingermany.php:19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wptermingermany ===
)
wptermingermany/wptermingermany.php 85% from 13 tests
"wpTerminGermany" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/lang")
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
There were no executable files found in this plugin6,970 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,310 | 555 | 4,451 |
PHP | 19 | 701 | 200 | 1,391 |
HTML | 8 | 97 | 0 | 671 |
CSS | 5 | 154 | 74 | 457 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/fullcalendar-1.6.4/demos/cupertino/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
lib/fullcalendar-1.6.4/demos/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png | 0.38KB | 0.18KB | ▼ 52.97% |
lib/fullcalendar-1.6.4/demos/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.24KB | 0.16KB | ▼ 35.34% |
lib/fullcalendar-1.6.4/demos/cupertino/images/ui-icons_72a7cf_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
views/gfx/arrow_undo.png | 0.62KB | 0.67KB | 0.00% |