88% acf-widont

Code Review | ACF Widont

WordPress plugin ACF Widont scored 88% from 54 tests.

About plugin

  • Plugin page: acf-widont
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Feb 26, 2018
  • Latest release: Feb 26, 2018
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: oliverbelmont (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 468 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼142.17ms] Passed 4 tests

Server-side resources used by ACF Widont
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0028.28 ▼5.97
Dashboard /wp-admin3.06 ▲0.0042.28 ▼4.28
Posts /wp-admin/edit.php3.11 ▲0.0047.14 ▼2.88
Add New Post /wp-admin/post-new.php5.42 ▼0.0291.34 ▼555.54
Media Library /wp-admin/upload.php3.00 ▲0.0034.19 ▼1.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Widont
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9716.34 ▲0.6512.11 ▲2.9750.84 ▲8.34
Dashboard /wp-admin2,986 ▲525.96 ▼0.10160.95 ▲5.61113.38 ▼1.41
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0064.47 ▼0.5787.78 ▼3.74
Add New Post /wp-admin/post-new.php1,500 ▼018.60 ▲0.07386.06 ▲9.62110.58 ▼0.74
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.01158.26 ▼13.15116.03 ▼0.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acf-widont/public/partials/acf_widont-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/acf-widont/admin/partials/acf_widont-admin-display.php:26

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: spam, comments

acf-widont/acf_widont.php 85% from 13 tests

The main PHP script in "ACF Widont" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-widont.php" instead of "acf_widont.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin328 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12166624322
JavaScript24546
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.29
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3083.33%
▷ Protected methods00.00%
▷ Private methods616.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected