99% acf-sidebar

Code Review | Advanced Custom Fields Sidebar

WordPress plugin Advanced Custom Fields Sidebar scored 99% from 54 tests.

About plugin

  • Plugin page: acf-sidebar
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9
  • WordPress version: 5.9.2
  • First release: Apr 24, 2018
  • Latest release: Apr 24, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: oremtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 747 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Advanced Custom Fields Sidebar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0152.93 ▲0.83
Dashboard /wp-admin3.41 ▲0.0034.47 ▲2.13
Posts /wp-admin/edit.php3.64 ▲0.0037.21 ▼0.02
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.68 ▼1,188.66
Media Library /wp-admin/upload.php3.29 ▲0.0023.81 ▲0.52

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Custom Fields Sidebar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.86 ▼0.166.14 ▼0.412.29 ▼0.25
Dashboard /wp-admin2,895 ▲346.11 ▼0.08119.35 ▼15.02160.30 ▼0.97
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0160.43 ▼4.02137.45 ▼4.22
Add New Post /wp-admin/post-new.php1,752 ▲9121.64 ▲4.84440.56 ▲20.37158.72 ▲2.42
Media Library /wp-admin/upload.php1,695 ▼35.50 ▲0.01161.09 ▲25.66194.33 ▲9.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in acf-sidebar/assets to your readme.txt
The official readme.txt is a good inspiration

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

"Advanced Custom Fields Sidebar" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected158 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311116158

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin