89% tua-forma

Code Review | Tua Forma

WordPress plugin Tua Forma scored89%from 54 tests.

About plugin

  • Plugin page: tua-forma
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: May 18, 2022
  • Number of updates: 16
  • Update frequency: every 81.9 days
  • Top authors: lbonomo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /919 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.58ms] Passed 4 tests

An overview of server-side resources used by Tua Forma
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.71 ▼5.37
Dashboard /wp-admin3.33 ▲0.0346.70 ▼2.23
Posts /wp-admin/edit.php3.38 ▲0.0247.61 ▼3.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.74 ▲0.04
Media Library /wp-admin/upload.php3.25 ▲0.0232.53 ▼3.37
Tua Forma /wp-admin/options-general.php?page=tua-forma-settings3.2229.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
can_compress_scripts
tua-forma-successful-message
widget_theysaidso_widget
tua-forma-error-message
widget_recent-comments
theysaidso_admin_options
tua-forma-honeypot
tua-forma-smtp-recipients
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by Tua Forma
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.16 ▼1.391.65 ▼0.0544.01 ▲0.91
Dashboard /wp-admin2,210 ▲224.83 ▼0.05109.91 ▼3.8840.31 ▼3.76
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0339.43 ▼2.7734.47 ▼3.00
Add New Post /wp-admin/post-new.php1,545 ▲3117.89 ▲0.36619.31 ▼62.2153.42 ▼5.26
Media Library /wp-admin/upload.php1,392 ▲104.20 ▼0.0798.77 ▼0.3345.56 ▲1.95
Tua Forma /wp-admin/options-general.php?page=tua-forma-settings8272.1623.5326.27

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in tua-forma/assets to your readme.txt
Please take inspiration from this readme.txt

tua-forma/tua-forma.php 85% from 13 tests

The entry point to "Tua Forma" version 1.1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0.0" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected500 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP792208500

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity19.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods414.81%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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