Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/growpro-widgets/growpro-widgets.php+38
Undefined offset: 0
Server metrics [RAM: ▲0.02MB] [CPU: ▼138.01ms] Passed 4 tests
Analyzing server-side resources used by GrowPro widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 38.12 ▲13.56 |
Dashboard /wp-admin | 3.08 ▲0.02 | 47.56 ▲1.86 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 47.93 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.76 ▼558.83 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 30.78 ▲2.43 |
Generar widgets /wp-admin/admin.php?page=growpro-widgets/includes/gpw-first-acp-page.php | 2.99 | 27.56 |
Ajustes /wp-admin/admin.php?page=growpro-widgets/includes/gpw-setting.php | 3.00 | 30.81 |
Generar links /wp-admin/admin.php?page=growpro-widgets/includes/gpw-link-gen-page.php | 2.99 | 29.77 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, no new options
New tables |
---|
wp_gpw_setting |
Browser metrics Passed 4 tests
An overview of browser requirements for GrowPro widgets
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,855 ▲273 | 16.23 ▲0.61 | 13.00 ▲3.05 | 52.66 ▼1.30 |
Dashboard /wp-admin | 3,030 ▲99 | 6.13 ▲0.16 | 143.51 ▼10.53 | 114.83 ▼0.46 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.70 ▲0.01 | 70.13 ▲3.08 | 91.94 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,899 ▲227 | 19.23 ▲0.14 | 378.73 ▼2.12 | 106.66 ▼7.16 |
Media Library /wp-admin/upload.php | 1,848 ▲41 | 5.00 ▼0.01 | 150.77 ▼5.52 | 119.04 ▼6.47 |
Generar widgets /wp-admin/admin.php?page=growpro-widgets/includes/gpw-first-acp-page.php | 1,063 | 2.09 | 56.96 | 68.77 |
Ajustes /wp-admin/admin.php?page=growpro-widgets/includes/gpw-setting.php | 1,123 | 2.05 | 50.21 | 67.69 |
Generar links /wp-admin/admin.php?page=growpro-widgets/includes/gpw-link-gen-page.php | 1,060 | 2.05 | 54.51 | 62.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/growpro-widgets/growpro-widgets.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/growpro-widgets/includes/gpw-setting.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/growpro-widgets/includes/gpw-header.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/growpro-widgets/uninstall.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/growpro-widgets/includes/gpw-first-acp-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/growpro-widgets/includes/gpw-link-gen-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/growpro-widgets/includes/gpw-functions.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Contributors: The plugin contributors field is not present
growpro-widgets/growpro-widgets.php Passed 13 tests
The principal PHP file in "GrowPro widgets" v. 2.0.8 is loaded by WordPress automatically on each request
44 characters long description:
Generador de widgets para GrowPro Experience
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin258 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 40 | 27 | 186 |
CSS | 1 | 0 | 0 | 68 |
JavaScript | 1 | 6 | 1 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/growpro-logo.png | 4.30KB | 3.53KB | ▼ 17.86% |