94% acf-wysiwyg-styling

Code Review | ACF WYSIWYG Styling

WordPress plugin ACF WYSIWYG Styling scored 94% from 54 tests.

About plugin

  • Plugin page: acf-wysiwyg-styling
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.3
  • WordPress version: 5.9.2
  • First release: Aug 27, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 17
  • Update frequency: N/A
  • Top authors: delwinv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,762 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by ACF WYSIWYG Styling
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0161.39 ▲6.46
Dashboard /wp-admin3.41 ▲0.0139.27 ▲1.08
Posts /wp-admin/edit.php3.64 ▲0.0141.76 ▼2.75
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.94 ▼1,181.63
Media Library /wp-admin/upload.php3.30 ▲0.0027.74 ▼0.07

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF WYSIWYG Styling
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲4115.94 ▲0.825.56 ▼0.482.39 ▲0.19
Dashboard /wp-admin2,895 ▲346.15 ▼0.01116.61 ▼10.16150.41 ▼6.80
Posts /wp-admin/edit.php2,694 ▲33.23 ▼0.0063.24 ▲1.20137.62 ▼5.53
Add New Post /wp-admin/post-new.php1,758 ▲4722.00 ▲1.25441.78 ▼25.44158.41 ▲2.39
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.02141.70 ▼4.96189.55 ▲0.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-wysiwyg-styling/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 96% from 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: style, acf, wysiwyg, styling, styles

acf-wysiwyg-styling/index.php 92% from 13 tests

"ACF WYSIWYG Styling" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acf-wysiwyg-styling.php" instead of "index.php")

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 plugin24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin