84% developer-tools-for-acf

Code Review | Developer Tools For ACF

WordPress plugin Developer Tools For ACF scored84%from 54 tests.

About plugin

  • Plugin page: developer-tools-f...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 18, 2018
  • Latest release: Oct 28, 2018
  • Number of updates: 3
  • Update frequency: every 6.0 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /692 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.42ms] Passed 4 tests

An overview of server-side resources used by Developer Tools For ACF
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.89 ▲0.27
Dashboard /wp-admin3.39 ▲0.0846.72 ▼9.95
Posts /wp-admin/edit.php3.50 ▲0.1452.31 ▲2.50
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.85 ▼21.60
Media Library /wp-admin/upload.php3.31 ▲0.0834.58 ▼2.41
Developer Tools /wp-admin/edit.php?post_type=acf-field-group&page=developer-tools-for-acf3.0723.78

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Developer Tools For ACF
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.251.60 ▼0.0640.79 ▲1.59
Dashboard /wp-admin2,203 ▲185.76 ▼0.1094.06 ▼12.1137.57 ▼6.33
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0438.79 ▼1.9034.57 ▼2.91
Add New Post /wp-admin/post-new.php1,537 ▲422.67 ▼0.34665.29 ▲19.5361.53 ▲6.90
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0293.47 ▼8.5142.37 ▼4.68
Developer Tools /wp-admin/edit.php?post_type=acf-field-group&page=developer-tools-for-acf280.440.093.76

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=acf-field-group&page=developer-tools-for-acf
    • > Network (severe)
    wp-admin/edit.php?post_type=acf-field-group&page=developer-tools-for-acf - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: The official readme.txt might help

developer-tools-for-acf/developer-tools-for-acf.php Passed 13 tests

The main PHP script in "Developer Tools For ACF" version 1.0 is automatically included on every request by WordPress
31 characters long description:
Provide developer tools for ACF

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected497 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23964307
JavaScript11512122
CSS214068

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity23.50
▷ Minimum class complexity20.00
▷ Maximum class complexity27.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods521.74%
▷ Public methods23100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin