84% acf-wysiwyg-styling

Code Review | ACF WYSIWYG Styling

WordPress plugin ACF WYSIWYG Styling scored 84% 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: 6.3.1
  • 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 / 2,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by ACF WYSIWYG Styling
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.55 ▼9.12
Dashboard /wp-admin3.31 ▲0.0044.43 ▼2.42
Posts /wp-admin/edit.php3.36 ▲0.0047.44 ▼2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.30 ▼2.77
Media Library /wp-admin/upload.php3.23 ▲0.0034.51 ▲0.30

Server storage [IO: ▲0.01MB] [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
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for ACF WYSIWYG Styling
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.48 ▼0.101.89 ▼0.2941.84 ▲4.35
Dashboard /wp-admin2,206 ▲154.87 ▼0.02109.37 ▲2.8036.38 ▼6.36
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0439.98 ▼0.5734.82 ▼1.96
Add New Post /wp-admin/post-new.php1,533 ▼1723.40 ▲5.29631.18 ▼9.1952.92 ▼2.23
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0195.41 ▼5.9841.98 ▼1.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wysiwyg, acf, style, styles, styling

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

The main PHP file in "ACF WYSIWYG Styling" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file 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 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10019
PHP1285

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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

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