94% crunchbase-api-widget

Code Review | CrunchBase API Widget

WordPress plugin CrunchBase API Widget scored 94% from 54 tests.

About plugin

  • Plugin page: crunchbase-api-wi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 5.8.1
  • First release: Mar 8, 2013
  • Latest release: Feb 8, 2014
  • Number of updates: 6
  • Update frequency: every 56.2 days
  • Top authors: iteamweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 890 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1442.76 ▲22.27
Dashboard /wp-admin3.09 ▲0.0349.23 ▲0.07
Posts /wp-admin/edit.php3.14 ▲0.0349.40 ▲1.45
Add New Post /wp-admin/post-new.php5.45 ▲0.0192.60 ▼561.36
Media Library /wp-admin/upload.php3.03 ▲0.0336.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.95 ▲0.459.23 ▼0.0648.52 ▼6.17
Dashboard /wp-admin2,990 ▲595.88 ▼0.08169.02 ▲14.70108.87 ▼13.34
Posts /wp-admin/edit.php2,759 ▲202.71 ▼0.1384.57 ▲11.7891.06 ▼3.46
Add New Post /wp-admin/post-new.php1,696 ▲1318.74 ▲0.34423.38 ▼4.25110.10 ▼3.19
Media Library /wp-admin/upload.php1,827 ▲205.09 ▲0.06160.28 ▼18.99121.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

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: ""
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP15411166

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 code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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