94% acf-generous

Code Review | ACF Generous

WordPress plugin ACF Generous scored 94% from 54 tests.

About plugin

  • Plugin page: acf-generous
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 5.9.2
  • First release: Oct 29, 2014
  • Latest release: Oct 29, 2014
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: genero.us (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,176 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼312.94ms] Passed 4 tests

Server-side resources used by ACF Generous
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.41 ▼38.98
Dashboard /wp-admin3.42 ▲0.0132.87 ▼2.09
Posts /wp-admin/edit.php3.65 ▲0.0136.56 ▼3.67
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.43 ▼1,207.03
Media Library /wp-admin/upload.php3.30 ▲0.0124.18 ▲1.26

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF Generous: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲2516.19 ▲1.015.83 ▼0.071.99 ▲0.13
Dashboard /wp-admin2,889 ▲286.08 ▼0.10148.83 ▼0.69185.40 ▲23.29
Posts /wp-admin/edit.php2,694 ▲63.24 ▼0.0067.68 ▲2.93141.16 ▼4.82
Add New Post /wp-admin/post-new.php1,752 ▲9121.09 ▲3.89448.44 ▼13.58203.91 ▲20.02
Media Library /wp-admin/upload.php1,698 ▲65.52 ▼0.00147.15 ▼8.84256.73 ▲29.59

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
Uninstaller ran successfully

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-generous/v5/acf-generous-slider.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-generous/v4/acf-generous-slider.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
7 plugin tags: custom, admin, field, slider, generous...

acf-generous/acf-generous.php 92% from 13 tests

The main PHP file in "ACF Generous" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected184 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP387345182
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.67
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected