84% powerup-cf7

Code Review | Powerup CF7

WordPress plugin Powerup CF7 scored84%from 54 tests.

About plugin

  • Plugin page: powerup-cf7
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Apr 9, 2017
  • Latest release: Apr 9, 2017
  • Number of updates: 11
  • Update frequency: every 5.5 days
  • Top authors: The Mecahnic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Powerup CF7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.28 ▲2.04
Dashboard /wp-admin3.32 ▼0.0247.12 ▼15.06
Posts /wp-admin/edit.php3.37 ▲0.0242.67 ▼4.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.50 ▼16.44
Media Library /wp-admin/upload.php3.24 ▲0.0235.73 ▲2.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Powerup CF7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.35 ▲0.131.78 ▲0.1945.06 ▲8.01
Dashboard /wp-admin2,209 ▲295.58 ▼0.0594.15 ▲7.2442.22 ▲2.92
Posts /wp-admin/edit.php2,114 ▲142.03 ▲0.0533.53 ▼2.2033.73 ▼1.34
Add New Post /wp-admin/post-new.php1,538 ▲1223.33 ▲0.35707.81 ▲41.2554.66 ▼4.32
Media Library /wp-admin/upload.php1,414 ▲144.20 ▼0.02109.63 ▲2.0547.85 ▲0.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/powerup-cf7/includes/capabilities.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: cf7 data, contact, post data, crm, socket...

powerup-cf7/powerup-cf7.php Passed 13 tests

The primary PHP file in "Powerup CF7" version 1.0 is used by WordPress to initiate all plugin functionality
40 characters long description:
Post your contact form 7 data to Socket.

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
Success! There were no dangerous files found in this plugin164 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43319109
CSS12055

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin