90% gf-add-on-autoexport-entries-to-csv

Code Review | = Plugin Name

WordPress plugin = Plugin Name scored90%from 54 tests.

About plugin

  • Plugin page: gf-add-on-autoexp...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2017
  • Latest release: Jun 21, 2018
  • Number of updates: 23
  • Update frequency: every 9.7 days
  • Top authors: lcman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,234 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.07MB] [CPU: ▼10.58ms] Passed 4 tests

A check of server-side resources used by = Plugin Name
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.71 ▼0.90
Dashboard /wp-admin3.39 ▲0.0445.77 ▼19.58
Posts /wp-admin/edit.php3.44 ▲0.0849.85 ▲4.82
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.81 ▼25.11
Media Library /wp-admin/upload.php3.31 ▲0.0838.97 ▲3.27

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for = Plugin Name
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.29 ▼1.141.70 ▼0.3942.51 ▼1.23
Dashboard /wp-admin2,203 ▲125.86 ▲0.01102.81 ▼3.6541.00 ▼1.36
Posts /wp-admin/edit.php2,092 ▼02.05 ▼0.0041.09 ▲0.0136.58 ▼3.91
Add New Post /wp-admin/post-new.php1,536 ▲822.96 ▲4.56659.69 ▲45.2252.37 ▼1.60
Media Library /wp-admin/upload.php1,385 ▼04.30 ▲0.0999.79 ▼1.9344.38 ▼0.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were no plugin tags found

gf-add-on-autoexport-entries-to-csv/autoexport-csv-gf.php 92% from 13 tests

The main PHP file in "= Plugin Name" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gf-add-on-autoexport-entries-to-csv.php" instead of "autoexport-csv-gf.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
Everything looks great! No dangerous files found in this plugin745 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP330995729
JavaScript14116

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity27.67
▷ Minimum class complexity2.00
▷ Maximum class complexity55.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods627.27%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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