89% acf-companion-lite

Code Review | ACF Companion Lite

WordPress plugin ACF Companion Lite scored89%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: 6.3.1
  • 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 /658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by ACF Companion Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.43 ▲2.63
Dashboard /wp-admin3.31 ▲0.0049.63 ▼4.54
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▼3.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.65 ▲1.59
Media Library /wp-admin/upload.php3.23 ▲0.0039.97 ▲5.19

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

ACF Companion Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.51 ▼0.141.88 ▲0.1844.05 ▲3.46
Dashboard /wp-admin2,198 ▲185.62 ▼0.0688.74 ▼12.4637.68 ▼5.03
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0138.78 ▲3.4633.53 ▼3.96
Add New Post /wp-admin/post-new.php1,526 ▼223.75 ▲0.44660.56 ▼1.2853.15 ▼5.55
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0495.61 ▼9.4143.97 ▲0.64

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
6 plugin tags: content, acf, advanced custom fields, acfc, acf companion...

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

"ACF Companion Lite" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin351 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS163116299
PHP1395851
SVG1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 1.39MB with 0.77MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/banner-1544x500.png119.82KB50.28KB▼ 58.04%
assets/img/screenshot-4.png597.70KB296.29KB▼ 50.43%
assets/img/screenshot-3.png110.21KB44.98KB▼ 59.19%
assets/img/screenshot-1.png417.17KB182.92KB▼ 56.15%
assets/img/icon-256x256.png7.18KB3.53KB▼ 50.88%