Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/mycred-zapier/includes/mycred-zapier-functions.php+30
Uncaught Error: Call to undefined function mycred_update_option() in wp-content/plugins/mycred-zapier/includes/mycred-zapier-functions.php:30
Stack trace:
#0 wp-includes/class-wp-hook.php(310): create_mycred_zapier_table()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.43ms] Passed 4 tests
Analyzing server-side resources used by myCred - Zapier Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.98 ▼6.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.79 ▼4.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.77 ▲1.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.16 ▼10.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.80 ▼3.87 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mycred_zapier |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for myCred - Zapier Integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.23 ▼0.48 | 1.62 ▼0.04 | 37.64 ▼8.48 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.07 | 83.58 ▼11.07 | 40.63 ▼3.76 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 39.45 ▲0.58 | 35.97 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 22.89 ▼2.19 | 596.98 ▼23.83 | 75.62 ▲15.92 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.02 | 97.07 ▼0.43 | 42.18 ▼1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_mycred_zapier
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycred-zapier/includes/class-mycred-zapier.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-zapier/includes/mycred-zapier-api.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: zapier, automation, mycred, points system, integration
mycred-zapier/mycred-zapier.php 92% from 13 tests
The main PHP file in "myCred - Zapier Integration" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 5.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin480 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 190 | 26 | 456 |
JavaScript | 1 | 10 | 12 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 3 | |
▷ Named functions | 3 | 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
There were not PNG files found in your plugin