89% followize-extension-cf7

Code Review | Followize Extension - Contact Form 7

WordPress plugin Followize Extension - Contact Form 7 scored89%from 54 tests.

About plugin

  • Plugin page: followize-extensi...
  • Plugin version: 0.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2016
  • Latest release: Aug 3, 2023
  • Number of updates: 22
  • Update frequency: every 110.1 days
  • Top authors: followize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,108 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼10.44ms] Passed 4 tests

An overview of server-side resources used by Followize Extension - Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.59 ▲4.69
Dashboard /wp-admin3.46 ▲0.1142.34 ▼20.31
Posts /wp-admin/edit.php3.57 ▲0.2148.97 ▼2.01
Add New Post /wp-admin/post-new.php6.06 ▲0.1776.59 ▼20.91
Media Library /wp-admin/upload.php3.38 ▲0.1535.29 ▲1.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Followize Extension - Contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.36 ▲0.202.41 ▲0.6744.18 ▲3.99
Dashboard /wp-admin2,201 ▲245.72 ▲0.1494.41 ▲7.3935.81 ▼7.12
Posts /wp-admin/edit.php2,106 ▲62.07 ▲0.0536.46 ▼5.6230.25 ▼10.63
Add New Post /wp-admin/post-new.php1,540 ▲518.27 ▼0.04651.80 ▲1.8780.17 ▲11.05
Media Library /wp-admin/upload.php1,406 ▲34.25 ▲0.0596.68 ▼3.4341.50 ▼4.62

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Aba de configuração do plugin) image required
You can look at the official readme.txt

followize-extension-cf7/followize-extension-cf7.php 92% from 13 tests

This is the main PHP file of "Followize Extension - Contact Form 7" version 0.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 381 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,953 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript158361,4723,236
PHP99714693
JSON10024
CSS1210

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.80
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods66
▷ Static methods4466.67%
▷ Public methods6293.94%
▷ Protected methods00.00%
▷ Private methods46.06%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.50MB with 0.31MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png255.54KB94.91KB▼ 62.86%
trunk/screenshot-1.png255.54KB94.91KB▼ 62.86%