Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲1.39ms] Passed 4 tests
Server-side resources used by ELM: Make Simple Membership Sites Minus the Headache
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 46.95 ▲7.15 |
Dashboard /wp-admin | 3.79 ▲0.49 | 51.85 ▲4.75 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 45.80 ▼1.42 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 96.43 ▼4.92 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 41.52 ▲8.18 |
Settings /wp-admin/edit.php?post_type=ristretto-elm&page=elm-settings | 3.62 | 33.79 |
Members /wp-admin/edit.php?post_type=ristretto-elm&page=elm-members | 3.63 | 32.83 |
Add New /wp-admin/post-new.php?post_type=ristretto-elm | 3.83 | 48.68 |
Levels /wp-admin/edit.php?post_type=ristretto-elm | 3.76 | 40.31 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
elm_settings |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ELM: Make Simple Membership Sites Minus the Headache
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲87 | 13.23 ▼1.19 | 1.65 ▼0.27 | 42.99 ▲1.47 |
Dashboard /wp-admin | 2,242 ▲54 | 5.87 ▲0.04 | 97.31 ▼4.05 | 37.38 ▼9.43 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.02 ▼0.02 | 36.33 ▼0.16 | 35.89 ▲5.07 |
Add New Post /wp-admin/post-new.php | 6,740 ▲5,226 | 23.16 ▲5.48 | 923.66 ▲257.91 | 41.59 ▼14.75 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.18 ▼0.03 | 114.04 ▲11.40 | 47.65 ▲2.62 |
Settings /wp-admin/edit.php?post_type=ristretto-elm&page=elm-settings | 834 | 1.69 | 23.60 | 26.73 |
Members /wp-admin/edit.php?post_type=ristretto-elm&page=elm-members | 1,040 | 1.72 | 26.78 | 25.68 |
Add New /wp-admin/post-new.php?post_type=ristretto-elm | 2,328 | 7.68 | 169.05 | 63.42 |
Levels /wp-admin/edit.php?post_type=ristretto-elm | 1,125 | 1.98 | 33.34 | 31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- elm_settings
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/elearning-memberships/includes/admin/meta-boxes/class-elmedd-metabox.php
- > /wp-content/plugins/elearning-memberships/includes/class-edd-registration.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/elearning-memberships/includes/templates/create-member-form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Easy protection of posts and pages), #2 (Protection message to non-members with links to purchase associated levels), #3 (ELM settings page)
elearning-memberships/elm.php 85% from 13 tests
"ELM: Make Simple Membership Sites Minus the Headache" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("elearning-memberships.php" instead of "elm.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,530 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 639 | 1,020 | 2,212 |
JavaScript | 3 | 30 | 16 | 194 |
CSS | 3 | 18 | 8 | 124 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.57 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 14 | 11.76% |
▷ Public methods | 108 | 90.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 9.24% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin