Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼145.77ms] Passed 4 tests
A check of server-side resources used by CrunchBase API Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 42.76 ▲22.27 |
Dashboard /wp-admin | 3.09 ▲0.03 | 49.23 ▲0.07 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 49.40 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 92.60 ▼561.36 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.94 ▼23.22 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 2 new options
New WordPress options |
---|
cbapi-options |
cbapi-widget |
Browser metrics Passed 4 tests
Checking browser requirements for CrunchBase API Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.95 ▲0.45 | 9.23 ▼0.06 | 48.52 ▼6.17 |
Dashboard /wp-admin | 2,990 ▲59 | 5.88 ▼0.08 | 169.02 ▲14.70 | 108.87 ▼13.34 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.71 ▼0.13 | 84.57 ▲11.78 | 91.06 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 18.74 ▲0.34 | 423.38 ▼4.25 | 110.10 ▼3.19 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.09 ▲0.06 | 160.28 ▼18.99 | 121.12 ▼12.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/crunchbase-api-widget/crunchbase.php:218
- > 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 93% 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 require attention:
- Donate link: Invalid url: ""
crunchbase-api-widget/crunchbase.php 92% from 13 tests
Analyzing the main PHP file in "CrunchBase API Widget" version 1.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crunchbase-api-widget.php" instead of "crunchbase.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
Good job! No executable or dangerous file extensions detected166 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 11 | 166 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected