83% forms-3rd-party-xpost

Code Review | Forms: 3rd-Party Xml Post

WordPress plugin Forms: 3rd-Party Xml Post scored83%from 54 tests.

About plugin

  • Plugin page: forms-3rd-party-x...
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Feb 23, 2014
  • Latest release: Jul 17, 2018
  • Number of updates: 32
  • Update frequency: every 50.3 days
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /7,139 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.62ms] Passed 4 tests

Server-side resources used by Forms: 3rd-Party Xml Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0637.35 ▼6.44
Dashboard /wp-admin3.37 ▲0.0644.84 ▼15.00
Posts /wp-admin/edit.php3.48 ▲0.1251.67 ▲1.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.09 ▼13.04
Media Library /wp-admin/upload.php3.29 ▲0.0633.25 ▼0.01

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Forms: 3rd-Party Xml Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.69 ▼0.612.08 ▲0.1840.37 ▼6.98
Dashboard /wp-admin2,203 ▲125.79 ▲0.76103.85 ▼12.5040.73 ▼4.47
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0440.11 ▲5.9834.93 ▼0.22
Add New Post /wp-admin/post-new.php1,514 ▼1917.54 ▼5.39595.85 ▼23.0358.56 ▼2.37
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.0097.60 ▼0.5242.21 ▲1.66

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 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/forms-3rd-party-xpost/forms-3rdparty-xpost.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
You can look at the official readme.txt

forms-3rd-party-xpost/forms-3rdparty-xpost.php 85% from 13 tests

"Forms: 3rd-Party Xml Post" version 1.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("forms-3rd-party-xpost.php" instead of "forms-3rdparty-xpost.php")
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

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

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity6.38
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.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