Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/eventist/eventist_widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; evWid has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼293.89ms] Passed 4 tests
A check of server-side resources used by Eventist
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.19 | 67.09 ▲14.93 |
Dashboard /wp-admin | 3.44 ▲0.04 | 50.31 ▼31.10 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 53.39 ▲12.07 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.06 | 112.33 ▼1,167.90 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 35.38 ▲11.36 |
Eventist Plugin /wp-admin/admin.php?page=eventist-main | 3.27 | 33.95 |
About /wp-admin/admin.php?page=eventist-about | 3.27 | 43.33 |
Settings /wp-admin/admin.php?page=eventist-settings | 3.27 | 69.35 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_eventist_own_tb |
New WordPress options |
---|
widget_evwid |
Browser metrics Passed 4 tests
An overview of browser requirements for Eventist
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,839 ▲85 | 15.54 ▼0.17 | 6.47 ▼0.49 | 2.96 ▲0.38 |
Dashboard /wp-admin | 2,934 ▲76 | 6.19 ▲0.02 | 121.64 ▼13.06 | 186.41 ▲21.04 |
Posts /wp-admin/edit.php | 2,741 ▲54 | 3.27 ▲0.02 | 64.12 ▼27.92 | 160.08 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,698 ▲30 | 21.80 ▲1.98 | 432.23 ▲26.28 | 170.73 ▲8.11 |
Media Library /wp-admin/upload.php | 1,745 ▲47 | 5.58 ▲0.10 | 123.02 ▼15.72 | 231.65 ▲43.65 |
Eventist Plugin /wp-admin/admin.php?page=eventist-main | 1,296 | 2.76 | 54.66 | 104.54 |
About /wp-admin/admin.php?page=eventist-about | 1,065 | 2.64 | 60.68 | 117.46 |
Settings /wp-admin/admin.php?page=eventist-settings | 1,096 | 2.76 | 58.92 | 128.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_eventist_own_tb
- Zombie WordPress options were found after uninstall: 1 option
- widget_evwid
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eventist-settings
- > Deprecated in wp-content/plugins/eventist/eventist_admin.php+194
Non-static method evAd::wrapStart() should not be called statically
- > GET request to /wp-admin/admin.php?page=eventist-main
- > Deprecated in wp-content/plugins/eventist/eventist_admin.php+94
Non-static method evAd::showMessage() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eventist-main
- > User notice in wp-includes/functions.php+5768
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eventist-settings
- > Deprecated in wp-content/plugins/eventist/eventist_admin.php+212
Non-static method evAd::wrapEnd() should not be called statically
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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/eventist/eventist.php:27
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/eventist/eventist_table.php on line 6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/eventist/eventist_table.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/eventist/eventist_table.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/eventist/eventist_widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: event calendar, calendar, events, eventist
eventist/eventist.php Passed 13 tests
The main PHP file in "Eventist" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Easy event manager for WordPress CMS
Code Analysis Passed 3 tests
File types Passed 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
Everything looks great! No dangerous files found in this plugin1,463 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 194 | 431 | 1,040 |
CSS | 3 | 45 | 46 | 411 |
JavaScript | 1 | 5 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 29.20 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 24 | 39.34% |
▷ Public methods | 49 | 80.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 19.67% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
js/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
js/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
js/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
js/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |