84% mw-wp-form-a8-tracker

Code Review | MW WP Form A8 Tracker

WordPress plugin MW WP Form A8 Tracker scored84%from 54 tests.

About plugin

  • Plugin page: mw-wp-form-a8-tra...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.5
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: May 25, 2020
  • Number of updates: 4
  • Update frequency: every 34.5 days
  • Top authors: a8wpform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /701 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.52ms] Passed 4 tests

A check of server-side resources used by MW WP Form A8 Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0152.21 ▲9.13
Dashboard /wp-admin3.31 ▲0.0152.81 ▼2.77
Posts /wp-admin/edit.php3.36 ▲0.0152.25 ▼3.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.41 ▼30.57
Media Library /wp-admin/upload.php3.24 ▲0.0139.29 ▲3.12

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for MW WP Form A8 Tracker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.311.86 ▲0.1839.60 ▼2.94
Dashboard /wp-admin2,192 ▲185.58 ▼0.0293.57 ▲6.0137.00 ▼7.60
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0140.43 ▼2.5734.81 ▼1.93
Add New Post /wp-admin/post-new.php1,545 ▼123.27 ▲0.39640.84 ▲36.1959.57 ▲2.11
Media Library /wp-admin/upload.php1,403 ▼04.25 ▲0.0496.01 ▼9.0739.96 ▼7.73

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

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 no errors were found, this is by no means 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/mw-wp-form-a8-tracker/mw-wp-form-a8-tracker.php:15

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can take inspiration from this readme.txt

mw-wp-form-a8-tracker/mw-wp-form-a8-tracker.php Passed 13 tests

"MW WP Form A8 Tracker" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Add A8 tracking code to MW WP Form. "Saving inquiry data in database" is required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin381 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP44316238
CSS16687
PO File1111149
JavaScript1307

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/handle.png0.20KB0.10KB▼ 48.28%