Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-snakemember-integration/wp_snake_member.php+12
Undefined variable: wpdb
Server metrics [RAM: ▲0.21MB] [CPU: ▼17.76ms] Passed 4 tests
Server-side resources used by WP Snakemember Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.94 | 46.55 ▲7.52 |
Dashboard /wp-admin | 4.22 ▲0.88 | 52.45 ▼9.73 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 46.21 ▲2.91 |
Add New Post /wp-admin/post-new.php | 4.01 ▼1.88 | 37.11 ▼71.72 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 43.34 ▲8.90 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 140 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_sm_object_permissions |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
wp_sm_table_db_version |
theysaidso_admin_options |
widget_recent-comments |
widget_snakemember_webforms_widget |
widget_theysaidso_widget |
can_compress_scripts |
widget_snakemembercampaigns_widget |
Browser metrics Passed 4 tests
WP Snakemember Integration: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.22 ▼0.33 | 4.46 ▲2.84 | 43.65 ▼1.10 |
Dashboard /wp-admin | 2,201 ▲24 | 5.65 ▲0.07 | 87.12 ▼2.12 | 75.42 ▲39.37 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.08 ▲0.07 | 39.79 ▼4.04 | 36.89 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,553 ▲18 | 18.29 ▼0.07 | 669.42 ▲47.00 | 56.28 ▼8.47 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.24 ▲0.06 | 99.46 ▼5.86 | 78.41 ▲34.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-snakemember-integration/affiliate_tracking/affiliate_tracking.php+29
Undefined index: path
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_sm_object_permissions
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_snakemember_webforms_widget
- theysaidso_admin_options
- wp_sm_table_db_version
- widget_recent-posts
- widget_snakemembercampaigns_widget
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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 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
Please fix the following
- 120× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Framework/TestCase.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/config.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'ActiveRecord\\Model' not found in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/models/Book.php:2
- > PHP Notice
Undefined index: user_email in wp-content/plugins/wp-snakemember-integration/autolog.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Framework/TestCase.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/config.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'SnakeCase_PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/DatabaseTest.php:4
- > PHP Fatal error
require_once(): Failed opening required 'PHPUnit/Framework/TestCase.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/config.php on line 14
- > PHP Warning
require_once(PHPUnit/Framework/TestCase.php): failed to open stream: No such file or directory in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/config.php on line 14
- > PHP Warning
require_once(PHPUnit/Framework/TestCase.php): failed to open stream: No such file or directory in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/config.php on line 14
- > PHP Warning
require_once(PHPUnit/Framework/TestCase.php): failed to open stream: No such file or directory in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/config.php on line 14
- > PHP Warning
require_once(PHPUnit/Framework/TestCase.php): failed to open stream: No such file or directory in wp-content/plugins/wp-snakemember-integration/lib/ActiveRecordLib/test/helpers/config.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: marketing, xmlrpc, integration, snakemember
wp-snakemember-integration/wp_snake_member.php 92% from 13 tests
The principal PHP file in "WP Snakemember Integration" v. 2.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-snakemember-integration.php" instead of "wp_snake_member.php")
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
There were no executable files found in this plugin12,610 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 2,692 | 3,345 | 11,146 |
JavaScript | 3 | 182 | 31 | 815 |
SQL | 6 | 59 | 1 | 361 |
PO File | 1 | 54 | 57 | 127 |
Markdown | 1 | 35 | 0 | 94 |
CSS | 2 | 16 | 0 | 67 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 118 | |
▷ Abstract classes | 5 | 4.24% |
▷ Concrete classes | 113 | 95.76% |
▷ Final classes | 0 | 0.00% |
Methods | 1,052 | |
▷ Static methods | 55 | 5.23% |
▷ Public methods | 975 | 92.68% |
▷ Protected methods | 19 | 1.81% |
▷ Private methods | 58 | 5.51% |
Functions | 174 | |
▷ Named functions | 124 | 71.26% |
▷ Anonymous functions | 50 | 28.74% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/snakem_favicon_128.png | 9.79KB | 3.45KB | ▼ 64.77% |
images/logo.png | 17.74KB | 0.70KB | ▼ 96.06% |
images/logo_black.png | 1.36KB | 0.70KB | ▼ 48.75% |