84% acf-views

Code Review | ACF Views Lite - Smart Templates to Display your Content Easily

WordPress plugin ACF Views Lite - Smart Templates to Display your Content Easily scored84%from 54 tests.

About plugin

  • Plugin page: acf-views
  • Plugin version: 2.4.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 95
  • Update frequency: every 5.7 days
  • Top authors: wplakeorg (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active /25,534 total downloads

Benchmarks

Plugin footprint 83% from 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: ▲4.69MB] [CPU: ▲33.43ms] Passed 4 tests

Analyzing server-side resources used by ACF Views Lite - Smart Templates to Display your Content Easily
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.00 ▲4.5476.94 ▲36.76
Dashboard /wp-admin8.05 ▲4.7486.70 ▲34.53
Posts /wp-admin/edit.php8.10 ▲4.7475.08 ▲30.41
Add New Post /wp-admin/post-new.php10.77 ▲4.88133.46 ▲32.03
Media Library /wp-admin/upload.php7.97 ▲4.7469.62 ▲37.45
Cards /wp-admin/edit.php?post_type=acf_cards8.0367.18
Views /wp-admin/edit.php?post_type=acf_views8.0361.66

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 543 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
acf_views_settings
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by ACF Views Lite - Smart Templates to Display your Content Easily
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7114.28 ▼0.082.17 ▲0.5242.51 ▲5.33
Dashboard /wp-admin2,234 ▲545.52 ▼0.1486.10 ▼17.5940.48 ▼12.92
Posts /wp-admin/edit.php2,139 ▲391.99 ▲0.0034.01 ▼6.5531.53 ▼5.63
Add New Post /wp-admin/post-new.php1,561 ▲3221.00 ▼2.21677.56 ▲86.1159.72 ▼0.16
Media Library /wp-admin/upload.php1,433 ▲334.26 ▲0.0698.91 ▲0.2841.70 ▼2.13
Cards /wp-admin/edit.php?post_type=acf_cards1,1892.0635.4938.17
Views /wp-admin/edit.php?post_type=acf_views1,1982.0533.1732.92

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: 7 options
    • widget_recent-comments
    • db_upgraded
    • acf_views_settings
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
  • 180× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\ode\ode' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Node/WithNode.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Node/Expression/Unary/PosUnary.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\\Error\\Error' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Error/RuntimeError.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Extension/SandboxExtension.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'org\\wplake\\acf_views\\vendors\\Twig\\Loader\\LoaderInterface' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Loader/FilesystemLoader.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Node/Expression/Binary/HasEveryBinary.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\\Sandbox\\SecurityError' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Sandbox/SecurityNotAllowedMethodError.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Node/Expression/Binary/AndBinary.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Test/IntegrationTestCase.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'org\\wplake\\acf_views\\vendors\\Twig\ode\ode' not found in wp-content/plugins/acf-views/prefixed_vendors/vendor/twig/twig/src/Node/ForLoopNode.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

acf-views/acf-views.php Passed 13 tests

The main file in "ACF Views Lite - Smart Templates to Display your Content Easily" v. 2.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Smart templates to display your content easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin37,280 lines of code in 471 files:
LanguageFilesBlank linesComment linesLines of code
PHP4094,78110,21935,075
PO File24143146833
JSON980605
Markdown41500506
JavaScript17216190
CSS714161
reStructuredText18510

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.59
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces52
Interfaces20
Traits1
Classes358
▷ Abstract classes318.66%
▷ Concrete classes32791.34%
▷ Final classes5717.43%
Methods2,266
▷ Static methods1506.62%
▷ Public methods1,69174.62%
▷ Protected methods48721.49%
▷ Private methods883.88%
Functions252
▷ Named functions17368.65%
▷ Anonymous functions7931.35%
Constants253
▷ Global constants62.37%
▷ Class constants24797.63%
▷ Public constants24699.60%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
src/Assets/pro.png16.69KB8.53KB▼ 48.91%