84% forma

Code Review | autometa's FORMA

WordPress plugin autometa's FORMA scored84%from 54 tests.

About plugin

  • Plugin page: forma
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Sep 18, 2017
  • Latest release: Jan 18, 2018
  • Number of updates: 6
  • Update frequency: every 23.3 days
  • Top authors: JorgeAmVF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /680 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.25ms] Passed 4 tests

Analyzing server-side resources used by autometa's FORMA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.83 ▼3.21
Dashboard /wp-admin3.31 ▲0.0050.86 ▼2.55
Posts /wp-admin/edit.php3.36 ▲0.0053.60 ▲6.07
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.51 ▲4.42
Media Library /wp-admin/upload.php3.23 ▲0.0035.91 ▲0.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

autometa's FORMA: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▲0.131.63 ▼0.3641.39 ▼2.68
Dashboard /wp-admin2,198 ▲215.62 ▼0.0392.65 ▼11.7944.67 ▲2.32
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0340.40 ▲3.9435.70 ▼0.96
Add New Post /wp-admin/post-new.php1,536 ▲1023.08 ▼0.46634.84 ▼65.7948.48 ▼8.24
Media Library /wp-admin/upload.php1,394 ▼34.19 ▼0.0396.77 ▼4.8043.59 ▼5.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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 | 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/forma/forma.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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: comment, form, comment form, automation, shortcode

forma/forma.php Passed 13 tests

The entry point to "autometa's FORMA" version 2.2 is a PHP file that has certain tags in its header comment area
56 characters long description:
It generates comment forms in posts simply via: [forma].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15228

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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