Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.69ms] Passed 4 tests
A check of server-side resources used by Geolocation Levels for Paid Membership Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.40 ▼4.76 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.33 ▼0.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.12 ▼0.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.02 ▲2.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.22 ▲2.21 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Geolocation Levels for Paid Membership Pro
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.37 ▼0.92 | 1.90 ▼0.11 | 45.09 ▼4.69 |
Dashboard /wp-admin | 2,206 ▲21 | 5.90 ▲1.01 | 105.15 ▼37.71 | 41.45 ▼9.08 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.97 ▼0.09 | 38.16 ▼1.99 | 38.43 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,543 ▲7 | 23.17 ▼0.03 | 633.27 ▼21.92 | 51.83 ▼1.34 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.20 ▼0.06 | 96.24 ▼3.99 | 41.74 ▲0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geolocation-levels-for-paid-membership-pro/includes/functions.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geolocation-levels-for-paid-membership-pro/geolocation-levels-pmpro.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Requires php: Invalid version format
- Screenshots: These screenshots require images: #1 (Screenshot 1), #2 (Screenshot 2)
geolocation-levels-for-paid-membership-pro/geolocation-levels-pmpro.php 85% from 13 tests
"Geolocation Levels for Paid Membership Pro" version 1.0.0'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: The principal plugin file should be the same as the plugin slug ("geolocation-levels-for-paid-membership-pro.php" instead of "geolocation-levels-pmpro.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin1,665 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 163 | 358 | 1,361 |
SVG | 1 | 0 | 0 | 288 |
CSS | 3 | 6 | 11 | 13 |
JavaScript | 3 | 1 | 17 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 16.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 13 | 27.66% |
▷ Public methods | 19 | 40.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 28 | 59.57% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin