84% pr-wpcf7-locaweb

Code Review | PR WPCF7 Locaweb

WordPress plugin PR WPCF7 Locaweb scored84%from 54 tests.

About plugin

  • Plugin page: pr-wpcf7-locaweb
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Apr 4, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: pauloiankoski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,716 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.81ms] Passed 4 tests

An overview of server-side resources used by PR WPCF7 Locaweb
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.15 ▲2.52
Dashboard /wp-admin3.33 ▲0.0348.53 ▼6.32
Posts /wp-admin/edit.php3.39 ▲0.0354.77 ▲0.10
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.48 ▲0.64
Media Library /wp-admin/upload.php3.26 ▲0.0335.83 ▼1.65
PR WPCF7 Locaweb /wp-admin/edit.php?post_type=prwpcf7locaweb3.3036.60

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for PR WPCF7 Locaweb
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.35 ▼0.291.80 ▼0.5339.67 ▼5.89
Dashboard /wp-admin2,192 ▲185.58 ▲0.0491.44 ▼4.8740.63 ▼0.83
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0137.54 ▼2.2437.39 ▲0.73
Add New Post /wp-admin/post-new.php1,410 ▼11618.02 ▼5.10575.27 ▼120.1857.95 ▲1.58
Media Library /wp-admin/upload.php1,406 ▲94.23 ▼0.04104.05 ▲0.0644.05 ▲1.26
PR WPCF7 Locaweb /wp-admin/edit.php?post_type=prwpcf7locaweb1,0491.9235.4230.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-wpcf7-locaweb/pr-admin-functions.php:185
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-wpcf7-locaweb/pr-front-functions.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pr-wpcf7-locaweb/pr-admin-functions.php:185

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: contact form, email marketing locaweb

pr-wpcf7-locaweb/pr-wpcf7-locaweb.php Passed 13 tests

Analyzing the main PHP file in "PR WPCF7 Locaweb" version 1.0
75 characters long description:
Integração do Contact Form 7 com o sistema de Email Marketing da Locaweb.

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

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin