83% options-page-admin-for-acf

Code Review | ACF Options Page Admin

WordPress plugin ACF Options Page Admin scored83%from 54 tests.

About plugin

  • Plugin page: options-page-admi...
  • Plugin version: 3.10.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Jan 2, 2017
  • Latest release: Dec 23, 2021
  • Number of updates: 36
  • Update frequency: every 50.4 days
  • Top authors: Hube2 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

7,000+ active /39,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by ACF Options Page Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.69 ▼0.19
Dashboard /wp-admin3.49 ▲0.1851.98 ▲1.86
Posts /wp-admin/edit.php3.60 ▲0.2455.69 ▲2.90
Add New Post /wp-admin/post-new.php6.09 ▲0.2098.02 ▼1.91
Media Library /wp-admin/upload.php3.41 ▲0.1840.12 ▲0.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

ACF Options Page Admin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.27 ▼0.482.00 ▼0.2645.59 ▲0.77
Dashboard /wp-admin2,200 ▲235.64 ▲0.0491.70 ▼0.5141.25 ▼4.35
Posts /wp-admin/edit.php2,105 ▲52.03 ▲0.0240.14 ▲3.6336.18 ▼3.27
Add New Post /wp-admin/post-new.php1,528 ▼317.48 ▼5.80622.74 ▼47.2255.13 ▼7.46
Media Library /wp-admin/upload.php1,405 ▲84.36 ▲0.14101.83 ▲0.2546.73 ▼0.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/options-page-admin-for-acf/api-template.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • License uri: Please fix this invalid url: ""
  • License: No string
You can take inspiration from this readme.txt

options-page-admin-for-acf/options-pages.php 85% from 13 tests

"ACF Options Page Admin" version 3.10.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("options-page-admin-for-acf.php" instead of "options-pages.php")

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
Good job! No executable or dangerous file extensions detected1,607 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP262631,146
PO File2133163438
JavaScript12523

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity6.32
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2288.00%
▷ Protected methods00.00%
▷ Private methods312.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin