84% remember-cf7-entries

Code Review | Remember CF7 Entries

WordPress plugin Remember CF7 Entries scored84%from 54 tests.

About plugin

  • Plugin page: remember-cf7-entries
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.5
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Sep 18, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: softound (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /911 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.30ms] Passed 4 tests

An overview of server-side resources used by Remember CF7 Entries
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.74 ▼0.84
Dashboard /wp-admin3.31 ▲0.0146.87 ▲0.93
Posts /wp-admin/edit.php3.37 ▲0.0147.24 ▲0.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.22 ▼11.60
Media Library /wp-admin/upload.php3.24 ▲0.0133.32 ▼9.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remember CF7 Entries
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲17414.14 ▼0.246.03 ▲4.1443.52 ▼5.85
Dashboard /wp-admin2,206 ▲245.82 ▼0.04103.19 ▼2.2539.11 ▼4.83
Posts /wp-admin/edit.php2,068 ▼212.05 ▼0.0134.49 ▼1.3733.27 ▼2.49
Add New Post /wp-admin/post-new.php1,533 ▼223.35 ▲0.09676.79 ▼10.1244.85 ▼31.76
Media Library /wp-admin/upload.php1,391 ▲94.21 ▼0.0193.71 ▼35.2244.04 ▼9.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/remember-cf7-entries/remember-cf7-entries.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: entries, field, remember, cf7, contactform7

remember-cf7-entries/remember-cf7-entries.php Passed 13 tests

The entry point to "Remember CF7 Entries" version 1.0.0 is a PHP file that has certain tags in its header comment area
53 characters long description:
This plugin is used to Remember Contactform7 entries.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected171 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161093
JavaScript183578

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin