62% cf7-save-into-database

Code Review | CF7NXT Lite - Contact Form 7 Save Into Database Plugin By Witoni Software

WordPress plugin CF7NXT Lite - Contact Form 7 Save Into Database Plugin By Witoni Software scored62%from 54 tests.

About plugin

  • Plugin page: cf7-save-into-dat...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 23, 2018
  • Latest release: Dec 4, 2018
  • Number of updates: 17
  • Update frequency: every 0.7 days
  • Top authors: Rakesh007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /572 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼0.57ms] Passed 4 tests

A check of server-side resources used by CF7NXT Lite - Contact Form 7 Save Into Database Plugin By Witoni Software
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1943.58 ▲2.05
Dashboard /wp-admin3.53 ▲0.1553.27 ▼8.14
Posts /wp-admin/edit.php3.65 ▲0.2551.93 ▲3.29
Add New Post /wp-admin/post-new.php6.14 ▲0.21101.93 ▲10.47
Media Library /wp-admin/upload.php3.46 ▲0.1939.60 ▲0.52
Labels /wp-admin/edit-tags.php?taxonomy=cf7nxt_labels&post_type=cf7nxt_panel3.4538.59
CF7NXT Panel /wp-admin/edit.php?post_type=cf7nxt_panel3.5043.07

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 1 new table, 8 new options
New tables
wp_cf7nxt_save
New WordPress options
db_upgraded
cf7nxt_view_install_date
widget_recent-posts
widget_theysaidso_widget
jal_db_version
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CF7NXT Lite - Contact Form 7 Save Into Database Plugin By Witoni Software
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.48 ▼0.808.44 ▲6.3742.21 ▲1.02
Dashboard /wp-admin2,230 ▲495.61 ▼0.0293.26 ▼10.0643.71 ▼1.02
Posts /wp-admin/edit.php2,135 ▲351.98 ▼0.0032.82 ▼1.8733.81 ▼4.09
Add New Post /wp-admin/post-new.php1,571 ▲4523.13 ▲0.07648.34 ▼32.4351.02 ▼4.28
Media Library /wp-admin/upload.php1,426 ▲324.20 ▼0.0396.01 ▼4.8441.89 ▼3.52
Labels /wp-admin/edit-tags.php?taxonomy=cf7nxt_labels&post_type=cf7nxt_panel1,3092.1227.1930.96
CF7NXT Panel /wp-admin/edit.php?post_type=cf7nxt_panel1,2112.0739.3234.55

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_cf7nxt_save
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • jal_db_version
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • cf7nxt_view_install_date
    • theysaidso_admin_options

Smoke tests 25% 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 0% 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/cf7-save-into-database/public/partials/cf7nxt-public-display.php
    • > /wp-content/plugins/cf7-save-into-database/admin/partials/cf7nxt-admin-display.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/cf7-save-into-database/admin/partials/cf7nxt-panel.php on line 18
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cf7-save-into-database/admin/partials/cf7nxt-panel.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cf7-save-into-database/includes/class-cf7nxt-activator.php:74
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/cf7-save-into-database/admin/partials/cf7nxt-panel.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cf7nxt_panel
    • > Network (severe)
    wp-content/plugins/cf7-save-into-database/admin/css/plugin-name-admin.css?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cf7nxt_panel
    • > Network (severe)
    wp-content/plugins/cf7-save-into-database/admin/js/plugin-name-admin.js?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: cf7 save, contact form 7 save database

cf7-save-into-database/cf7nxt.php 92% from 13 tests

The main file in "CF7NXT Lite - Contact Form 7 Save Into Database Plugin By Witoni Software" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cf7-save-into-database.php" instead of "cf7nxt.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin982 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13587768976
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods61
▷ Static methods34.92%
▷ Public methods5386.89%
▷ Protected methods11.64%
▷ Private methods711.48%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin