79% storychief-acf

Code Review | StoryChief ACF

WordPress plugin StoryChief ACF scored79%from 54 tests.

About plugin

  • Plugin page: storychief-acf
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 21, 2017
  • Latest release: Sep 30, 2022
  • Number of updates: 18
  • Update frequency: every 107.1 days
  • Top authors: storychief (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,312 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.01MB] [CPU: ▼6.13ms] Passed 4 tests

Server-side resources used by StoryChief ACF
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.59 ▼4.45
Dashboard /wp-admin3.32 ▲0.0145.70 ▼3.48
Posts /wp-admin/edit.php3.37 ▲0.0148.35 ▼0.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.16 ▼4.44
Media Library /wp-admin/upload.php3.24 ▲0.0135.02 ▼12.14
Storychief ACF /wp-admin/options-general.php?page=storychief-acf3.2632.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for StoryChief ACF
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.67 ▼0.621.86 ▼0.1442.87 ▼4.26
Dashboard /wp-admin2,210 ▲224.86 ▼1.04102.50 ▼9.4638.96 ▼8.45
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0341.03 ▲0.6530.65 ▼5.44
Add New Post /wp-admin/post-new.php1,549 ▲1518.28 ▼4.99606.82 ▼5.5368.97 ▲5.94
Media Library /wp-admin/upload.php1,386 ▼54.19 ▼0.1394.60 ▼12.8543.59 ▲2.08
Storychief ACF /wp-admin/options-general.php?page=storychief-acf8462.0627.1524.81

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

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/storychief-acf/storychief-acf.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/storychief-acf/views/config.php:4

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: storychief, acf, advanced custom fields

storychief-acf/storychief-acf.php Passed 13 tests

Analyzing the main PHP file in "StoryChief ACF" version 1.0.4
51 characters long description:
This plugin lets Storychief and ACF work together .

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
Success! There were no dangerous files found in this plugin323 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP66729323

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.50
▷ Minimum class complexity12.00
▷ Maximum class complexity17.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods28100.00%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin