90% pineparks-acf-auto-export-to-php

Code Review | Pineparks - ACF Auto Export to PHP

WordPress plugin Pineparks - ACF Auto Export to PHP scored90%from 54 tests.

About plugin

  • Plugin page: pineparks-acf-aut...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Mar 16, 2023
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: pineparks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /122 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
Installer ran successfully

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

An overview of server-side resources used by Pineparks - ACF Auto Export to PHP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.78 ▲0.07
Dashboard /wp-admin3.33 ▲0.0257.81 ▲6.44
Posts /wp-admin/edit.php3.38 ▲0.0251.47 ▼4.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.49 ▼15.13
Media Library /wp-admin/upload.php3.25 ▲0.0237.22 ▲2.83

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Pineparks - ACF Auto Export to PHP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.051.93 ▲0.2543.60 ▼2.00
Dashboard /wp-admin2,195 ▲245.63 ▼0.0386.29 ▼4.7041.61 ▼4.14
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0435.33 ▼2.5332.05 ▼5.12
Add New Post /wp-admin/post-new.php1,527 ▼222.92 ▼0.12664.81 ▲59.8957.66 ▲8.70
Media Library /wp-admin/upload.php1,400 ▲34.30 ▲0.15100.67 ▼3.2246.93 ▲2.39

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: fields, autoexport, pineparks, auto, advanced...

pineparks-acf-auto-export-to-php/acf-autoexport-php.php 92% from 13 tests

The principal PHP file in "Pineparks - ACF Auto Export to PHP" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pineparks-acf-auto-export-to-php.php" instead of "acf-autoexport-php.php")

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
Good job! No executable or dangerous file extensions detected110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14134110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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
There were not PNG files found in your plugin