89% acf-sidebar

Code Review | Advanced Custom Fields Sidebar

WordPress plugin Advanced Custom Fields Sidebar scored89%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: 6.3.1
  • 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

20+ active /1,000 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
Installer ran successfully

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

A check of server-side resources used by Advanced Custom Fields Sidebar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.39 ▼2.61
Dashboard /wp-admin3.31 ▼0.0450.40 ▼10.29
Posts /wp-admin/edit.php3.36 ▲0.0047.60 ▼1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.31 ▼2.67
Media Library /wp-admin/upload.php3.23 ▲0.0032.01 ▼2.04

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Custom Fields Sidebar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.55 ▼1.114.72 ▲3.1144.70 ▲3.27
Dashboard /wp-admin2,206 ▲185.79 ▲0.7295.93 ▼9.1838.46 ▼7.06
Posts /wp-admin/edit.php2,092 ▼02.05 ▲0.0540.21 ▼1.1036.22 ▼0.13
Add New Post /wp-admin/post-new.php1,533 ▲923.25 ▼0.04641.63 ▲10.2557.41 ▲3.00
Media Library /wp-admin/upload.php1,391 ▲64.19 ▲0.0196.18 ▼2.3141.05 ▼6.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2 in acf-sidebar/assets to your readme.txt
The official readme.txt might help

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 make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected158 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311116158

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected