73% caspio-deploy2

Code Review | Caspio Deployment Plugin

WordPress plugin Caspio Deployment Plugin scored73%from 54 tests.

About plugin

  • Plugin page: caspio-deploy2
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 11, 2011
  • Latest release: Sep 12, 2015
  • Number of updates: 45
  • Update frequency: every 37.9 days
  • Top authors: ikritikopoulos (73.33%)caspio (20%)davidfcarr (11.11%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /6,780 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.16MB] [CPU: ▼40.19ms] Passed 4 tests

A check of server-side resources used by Caspio Deployment Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.81 ▼0.6512.91 ▼27.14
Dashboard /wp-admin2.85 ▼0.4615.37 ▼35.29
Posts /wp-admin/edit.php2.85 ▼0.5116.64 ▼26.11
Add New Post /wp-admin/post-new.php2.85 ▼3.0417.36 ▼72.20
Media Library /wp-admin/upload.php2.85 ▼0.3816.21 ▼19.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Caspio Deployment Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.081.54 ▼0.2339.48 ▼9.89
Dashboard /wp-admin2,206 ▲185.91 ▼0.00113.17 ▼0.7844.37 ▼3.53
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0239.47 ▲2.4135.37 ▲2.24
Add New Post /wp-admin/post-new.php1,542 ▲918.44 ▼4.71601.27 ▼93.7450.01 ▼8.58
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0996.94 ▼30.1041.93 ▼7.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/caspio-deploy2/classes/class-datapage-loader.php+4
    Undefined variable: _SESSION
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/caspio-deploy2/classes/class-datapage-loader.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/caspio-deploy2/caspio-deployment2.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
  • Tested up to: Version format is invalid
The official readme.txt is a good inspiration

caspio-deploy2/caspio-deployment2.php 85% from 13 tests

"Caspio Deployment Plugin" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("caspio-deploy2.php" instead of "caspio-deployment2.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

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
There were no executable files found in this plugin482 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36248482

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity77.50
▷ Minimum class complexity3.00
▷ Maximum class complexity152.00
Average method complexity9.50
▷ 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected