84% bogo-translate-acf

Code Review | Bogo translate ACF

WordPress plugin Bogo translate ACF scored84%from 54 tests.

About plugin

  • Plugin page: bogo-translate-acf
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6.0
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Oct 6, 2013
  • Number of updates: 4
  • Update frequency: every 5.8 days
  • Top authors: jensnilsson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Bogo translate ACF
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.82 ▼9.56
Dashboard /wp-admin3.33 ▲0.0257.59 ▲6.16
Posts /wp-admin/edit.php3.38 ▲0.0245.02 ▼6.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.80 ▼20.35
Media Library /wp-admin/upload.php3.25 ▲0.0248.64 ▲12.24

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Bogo translate ACF: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.311.84 ▲0.1344.14 ▲2.77
Dashboard /wp-admin2,195 ▲185.62 ▼0.0886.24 ▼7.0738.66 ▼2.00
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0735.43 ▼4.6636.72 ▲0.20
Add New Post /wp-admin/post-new.php1,528 ▲222.99 ▲0.07719.37 ▲79.4975.70 ▲23.22
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.01120.79 ▲20.1845.91 ▼0.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bogo-translate-acf/bogo-translate-acf.php:23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: custom fields, translation

bogo-translate-acf/bogo-translate-acf.php 92% from 13 tests

"Bogo translate ACF" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1273376
JavaScript1023
Markdown1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin