99% acf-companion-lite

Code Review | ACF Companion Lite

WordPress plugin ACF Companion Lite scored 99% from 54 tests.

About plugin

  • Plugin page: acf-companion-lite
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.2-5.2.3
  • WordPress version: 5.9.2
  • First release: Oct 7, 2019
  • Latest release: Oct 7, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: goingbold (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 448 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by ACF Companion Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0152.57 ▲2.65
Dashboard /wp-admin3.41 ▲0.0032.08 ▼4.36
Posts /wp-admin/edit.php3.64 ▲0.0036.72 ▼1.83
Add New Post /wp-admin/post-new.php6.88 ▼0.0996.70 ▼1,172.38
Media Library /wp-admin/upload.php3.30 ▲0.0024.84 ▲0.35

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Companion Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.01 ▲0.235.55 ▼0.432.22 ▼0.10
Dashboard /wp-admin2,892 ▲316.14 ▼0.05120.42 ▼13.74157.69 ▼2.18
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0264.96 ▼0.29138.28 ▼2.46
Add New Post /wp-admin/post-new.php1,758 ▲9721.52 ▼0.91425.84 ▲24.08156.43 ▼2.57
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.02143.67 ▲4.47186.90 ▼0.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: content, advanced custom fields, management, acf, acf companion...

acf-companion-lite/acf-companion-lite.php 92% from 13 tests

This is the main PHP file of "ACF Companion Lite" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin351 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 1.39MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/screenshot-3.png110.21KB44.98KB▼ 59.19%
assets/img/screenshot-4.png597.70KB296.29KB▼ 50.43%
assets/img/banner-1544x500.png119.82KB50.28KB▼ 58.04%
assets/img/icon-128x128.png3.57KB1.78KB▼ 50.01%
assets/img/screenshot-2.png121.42KB46.65KB▼ 61.58%