Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▲1.07ms] Passed 4 tests
This is a short check of server-side resources used by Connect to external APIs - WPGetAPI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 55.46 ▲11.24 |
Dashboard /wp-admin | 3.65 ▲0.35 | 57.18 ▲0.46 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 50.37 ▲0.65 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 88.81 ▼4.34 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 43.28 ▲7.52 |
Licenses /wp-admin/admin.php?page=wpgetapi_plugin_licenses | 3.85 | 37.91 |
Setup /wp-admin/admin.php?page=wpgetapi_setup | 4.45 | 43.44 |
Server storage [IO: ▲4.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 394 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Connect to external APIs - WPGetAPI
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲60 | 13.27 ▼1.32 | 1.84 ▼0.33 | 42.27 ▼5.34 |
Dashboard /wp-admin | 2,252 ▲49 | 4.91 ▼0.05 | 115.74 ▼41.20 | 44.90 ▼1.41 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 2.07 ▲0.10 | 36.41 ▲0.25 | 33.74 ▼2.46 |
Add New Post /wp-admin/post-new.php | 6,394 ▲4,863 | 27.68 ▲4.68 | 903.47 ▲226.04 | 69.82 ▲18.78 |
Media Library /wp-admin/upload.php | 1,439 ▲45 | 4.22 ▼0.01 | 110.74 ▲8.33 | 46.74 ▲2.62 |
Licenses /wp-admin/admin.php?page=wpgetapi_plugin_licenses | 846 | 1.81 | 27.01 | 24.54 |
Setup /wp-admin/admin.php?page=wpgetapi_setup | 1,116 | 2.11 | 35.34 | 59.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wpgetapi/lib/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpgetapi/frontend/functions.php:171
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wpgetapi/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpgetapi/lib/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/wpgetapi/lib/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wpgetapi/lib/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wpgetapi/lib/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wpgetapi/lib/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/wpgetapi/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Warning
Use of undefined constant WPGETAPIVERSION - assumed 'WPGETAPIVERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpgetapi/includes/block-editor/index.asset.php on line 13
- > 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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The Setup screen where you can add your external APIs), #2 (Once an external API has been added, a new page will be created to setup the API endpoints), #3 (A live demo of the output when debug mode is set to true), #4 (An example of some raw output from an API), #5 (Basic example of the output from an API formatted into HTML table)
wpgetapi/wpgetapi.php Passed 13 tests
The entry point to "Connect to external APIs - WPGetAPI" version 2.2.3 is a PHP file that has certain tags in its header comment area
51 characters long description:
Connect to external API's and display the API data.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected57,266 lines of code in 235 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 68 | 2,832 | 6,951 | 9,125 |
JSON | 5 | 0 | 0 | 6,644 |
CSS | 13 | 269 | 1,190 | 5,285 |
JavaScript | 9 | 401 | 620 | 1,721 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 3 | 245 | 0 | 757 |
PHP code Passed 2 tests
An overview 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.49 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 191.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 9 | 12.00% |
▷ Concrete classes | 66 | 88.00% |
▷ Final classes | 1 | 1.52% |
Methods | 609 | |
▷ Static methods | 98 | 16.09% |
▷ Public methods | 511 | 83.91% |
▷ Protected methods | 89 | 14.61% |
▷ Private methods | 9 | 1.48% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 11 | 64.71% |
▷ Class constants | 6 | 35.29% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 compressed PNG files occupy 1.42MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
lib/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
lib/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |