74% custom-database-applications-by-caspio

Code Review | Custom Database Applications by Caspio

WordPress plugin Custom Database Applications by Caspio scored 74% from 54 tests.

About plugin

  • Plugin page: custom-database-a...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 2, 2015
  • Latest release: Sep 7, 2022
  • Number of updates: 32
  • Update frequency: every 79.1 days
  • Top authors: CaspioBridge (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 12,636 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.16MB] [CPU: ▼41.98ms] Passed 4 tests

This is a short check of server-side resources used by Custom Database Applications by Caspio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.81 ▼0.6513.26 ▼28.27
Dashboard /wp-admin2.85 ▼0.4516.42 ▼36.69
Posts /wp-admin/edit.php2.85 ▼0.5017.12 ▼29.44
Add New Post /wp-admin/post-new.php2.85 ▼3.0318.14 ▼73.53
Media Library /wp-admin/upload.php2.85 ▼0.3816.56 ▼18.78

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Custom Database Applications by Caspio: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.021.73 ▼0.0939.92 ▼9.95
Dashboard /wp-admin2,206 ▲204.83 ▼0.10102.23 ▼16.0640.50 ▼2.29
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.2139.89 ▲4.0835.04 ▼0.03
Add New Post /wp-admin/post-new.php1,542 ▲2218.15 ▼5.05632.86 ▼56.7054.70 ▼4.73
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0194.36 ▼10.7243.43 ▼4.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/custom-database-applications-by-caspio/classes/class-datapage-loader.php+4
    Undefined variable: _SESSION
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-database-applications-by-caspio/classes/class-datapage-loader.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/custom-database-applications-by-caspio/custom-database-applications-by-caspio.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
The official readme.txt might help

custom-database-applications-by-caspio/custom-database-applications-by-caspio.php Passed 13 tests

The primary PHP file in "Custom Database Applications by Caspio" version 2.1 is used by WordPress to initiate all plugin functionality
127 characters long description:
This plugin allows you to embed Caspio apps seamlessly on any WordPress post or page, simply by pasting the provided shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin489 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36248489

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity78.00
▷ Minimum class complexity3.00
▷ Maximum class complexity153.00
Average method complexity9.56
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods527.78%
▷ Protected methods00.00%
▷ Private methods1372.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.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 images were found in this plugin