90% acf-tab-accordion-title-icons

Code Review | ACF Tab & Accordion Title Icons

WordPress plugin ACF Tab & Accordion Title Icons scored90%from 54 tests.

About plugin

  • Plugin page: acf-tab-accordion...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 13, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 9
  • Update frequency: every 230.8 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,130 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by ACF Tab & Accordion Title Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.32 ▼5.36
Dashboard /wp-admin3.31 ▼0.0449.21 ▼26.66
Posts /wp-admin/edit.php3.36 ▲0.0050.74 ▲1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.57 ▼12.50
Media Library /wp-admin/upload.php3.23 ▲0.0040.27 ▲1.16

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Tab & Accordion Title Icons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.32 ▼0.292.01 ▲0.2943.02 ▲3.75
Dashboard /wp-admin2,186 ▲95.51 ▼0.0992.01 ▼4.3339.96 ▲2.07
Posts /wp-admin/edit.php2,097 ▼62.02 ▲0.0236.67 ▼3.4339.21 ▲1.61
Add New Post /wp-admin/post-new.php1,526 ▼1123.75 ▲5.62699.15 ▲72.3057.07 ▼14.79
Media Library /wp-admin/upload.php1,403 ▲64.29 ▲0.15116.14 ▲14.3348.59 ▲2.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: advanced custom fields, icons, acf, accordion, tabs...

acf-tab-accordion-title-icons/acf-tab-accordion-title-icons.php 92% from 13 tests

The principal PHP file in "ACF Tab & Accordion Title Icons" v. 1.0.3 is loaded by WordPress automatically on each request
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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,409 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON1007,135
CSS2122807
SVG100256
PHP14034117
PO File2303094

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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