Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/yy-events/yy-events.php+371
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.75ms] Passed 4 tests
Server-side resources used by YY EVENTS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.31 ▼38.84 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.63 ▼41.13 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.31 ▼39.32 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.65 ▼87.69 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.74 ▼29.18 |
YYEvents /wp-admin/edit.php?post_type=yyevents | 2.05 | 6.02 |
Add New /wp-admin/post-new.php?post_type=yyevents | 2.05 | 8.00 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_yye_event_widget |
db_upgraded |
Browser metrics Passed 4 tests
YY EVENTS: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 13.79 ▼0.59 | 1.79 ▲0.08 | 45.55 ▼2.14 |
Dashboard /wp-admin | 2,246 ▲58 | 4.92 ▼0.12 | 110.81 ▲6.28 | 43.41 ▲1.37 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.23 ▲0.19 | 40.99 ▲7.36 | 37.76 ▲3.35 |
Add New Post /wp-admin/post-new.php | 1,565 ▲32 | 23.12 ▲0.10 | 606.85 ▼60.48 | 54.76 ▼5.82 |
Media Library /wp-admin/upload.php | 1,431 ▲49 | 4.28 ▲0.01 | 95.77 ▼4.31 | 45.43 ▲1.66 |
YYEvents /wp-admin/edit.php?post_type=yyevents | 1,093 | 2.04 | 33.57 | 29.70 |
Add New /wp-admin/post-new.php?post_type=yyevents | 2,371 | 7.82 | 171.10 | 70.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/yy-events/yy-events.php+371
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_yye_event_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Deprecated in wp-content/plugins/yy-events/yy-events.php+371
Function create_function() is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in yye_event_widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPAlchemy_MetaBox::_global_head() should not be called statically
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Deprecated in wp-content/plugins/yy-events/wpalchemy/MetaBox.php+1516
Non-static method WPAlchemy_MetaBox::_is_post() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Deprecated in wp-content/plugins/yy-events/wpalchemy/MetaBox.php+986
Non-static method WPAlchemy_MetaBox::_is_post_or_page() should not be called statically
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Deprecated in wp-content/plugins/yy-events/wpalchemy/MetaBox.php+1024
Non-static method WPAlchemy_MetaBox::_get_current_post_type() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=yyevents
- > Deprecated in wp-content/plugins/yy-events/wpalchemy/MetaBox.php+1516
Non-static method WPAlchemy_MetaBox::_is_page() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPAlchemy_MetaBox::_global_foot() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Deprecated in wp-content/plugins/yy-events/wpalchemy/MetaBox.php+1061
Non-static method WPAlchemy_MetaBox::_get_post_id() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPAlchemy_MetaBox' not found in wp-content/plugins/yy-events/metaboxes/select-spec.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function the_field() on null in wp-content/plugins/yy-events/metaboxes/checkbox-meta.php:9
- > PHP Warning
include_once(ABSPATHwp-content/plugins/yy-events/wpalchemy/MetaBox.php): failed to open stream: No such file or directory in wp-content/plugins/yy-events/metaboxes/setup.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WPAlchemy_MediaAccess' not found in wp-content/plugins/yy-events/metaboxes/setup.php:5
- > PHP Notice
Undefined variable: mb in wp-content/plugins/yy-events/metaboxes/radio-meta.php on line 9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/yy-events/metaboxes/setup.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function the_field() on null in wp-content/plugins/yy-events/metaboxes/simple-meta.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function the_name() on null in wp-content/plugins/yy-events/metaboxes/full-meta.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/yy-events/yy-events.php:16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/yy-events/metaboxes/setup.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=yyevents
- > Network (severe)
wp-content/plugins/yy-events/metaboxes/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== yy-events ===
)
yy-events/yy-events.php Passed 13 tests
The entry point to "YY EVENTS" version 1.4 is a PHP file that has certain tags in its header comment area
76 characters long description:
Enables you to show a list of Events, Concerts, Sports and Theater Listings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,768 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 619 | 1,001 | 2,168 |
CSS | 3 | 80 | 66 | 551 |
PO File | 1 | 16 | 16 | 49 |
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.40 |
Average class complexity | 87.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 237.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 70 | 98.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.41% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 31.88KB | 15.04KB | ▼ 52.81% |
assets/screenshot-1.png | 24.36KB | 11.55KB | ▼ 52.56% |
assets/screenshot-5.png | 62.14KB | 27.28KB | ▼ 56.10% |
assets/screenshot-2.png | 27.88KB | 13.23KB | ▼ 52.56% |
assets/screenshot-4.png | 139.39KB | 48.62KB | ▼ 65.12% |