Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.98MB] [CPU: ▼311.32ms] Passed 4 tests
A check of server-side resources used by Past Events Extension
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.36 ▲1.84 | 73.35 ▲20.47 |
Dashboard /wp-admin | 5.29 ▲1.87 | 49.40 ▲14.04 |
Posts /wp-admin/edit.php | 5.53 ▲1.89 | 97.77 ▲7.96 |
Add New Post /wp-admin/post-new.php | 5.29 ▼1.69 | 41.30 ▼1,273.49 |
Media Library /wp-admin/upload.php | 5.29 ▲1.99 | 35.32 ▲6.22 |
Freemius Debug [v.1.2.2.9] /wp-admin/admin.php?page=freemius | 5.29 | 38.26 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 176 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_accounts |
fs_api_cache |
Browser metrics Passed 4 tests
A check of browser resources used by Past Events Extension
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲103 | 15.79 ▲0.10 | 6.04 ▲0.01 | 2.92 ▲0.15 |
Dashboard /wp-admin | 2,949 ▲88 | 6.25 ▲0.07 | 114.67 ▼23.32 | 176.66 ▲13.27 |
Posts /wp-admin/edit.php | 2,719 ▲28 | 3.25 ▲0.02 | 66.44 ▲3.80 | 161.03 ▲13.98 |
Add New Post /wp-admin/post-new.php | 1,693 ▼67 | 18.74 ▼2.83 | 424.40 ▼17.83 | 171.35 ▲14.32 |
Media Library /wp-admin/upload.php | 1,757 ▲59 | 5.57 ▲0.04 | 143.08 ▼5.25 | 209.55 ▲22.01 |
Freemius Debug [v.1.2.2.9] /wp-admin/admin.php?page=freemius | 1,429 | 2.38 | 57.81 | 320.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_accounts
- fs_api_cache
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/past-events-extension/freemius/templates/ajax-loader.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/past-events-extension/public/partials/template-past-session.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function pee_fs() in wp-content/plugins/past-events-extension/admin/partials/past-events-extension-admin-settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/past-events-extension/public/partials/past-sessions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: conference, past, session, tyler, events
past-events-extension/past-events-extension.php Passed 13 tests
The main PHP file in "Past Events Extension" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Adds "Past Events" support to sites running the Tyler events theme.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected25,951 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 100 | 4,278 | 10,750 | 18,584 |
PO File | 5 | 2,140 | 2,163 | 4,830 |
Sass | 20 | 329 | 76 | 2,091 |
JavaScript | 3 | 34 | 59 | 194 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 40 |
CSS | 12 | 0 | 0 | 20 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,264)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 44.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,264.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 796 | |
▷ Static methods | 128 | 16.08% |
▷ Public methods | 602 | 75.63% |
▷ Protected methods | 14 | 1.76% |
▷ Private methods | 180 | 22.61% |
Functions | 80 | |
▷ Named functions | 80 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 104 | |
▷ Global constants | 85 | 81.73% |
▷ Class constants | 19 | 18.27% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/past-events-extension.png | 9.16KB | 5.26KB | ▼ 42.58% |