84% easexport-gravity-forms-scheduled-entries-export

Code Review | Easexport - Gravity Forms Scheduled Entries Export

WordPress plugin Easexport - Gravity Forms Scheduled Entries Export scored84%from 54 tests.

About plugin

  • Plugin page: easexport-gravity...
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Jul 29, 2021
  • Number of updates: 10
  • Update frequency: every 37.1 days
  • Top authors: technocrackers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /929 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.57ms] Passed 4 tests

A check of server-side resources used by Easexport - Gravity Forms Scheduled Entries Export
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.42 ▼5.26
Dashboard /wp-admin3.39 ▲0.0946.45 ▼0.80
Posts /wp-admin/edit.php3.50 ▲0.1542.69 ▼4.58
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.39 ▼11.63
Media Library /wp-admin/upload.php3.31 ▲0.0837.64 ▲4.40

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Easexport - Gravity Forms Scheduled Entries Export
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.24 ▲0.051.70 ▼0.0136.95 ▼3.37
Dashboard /wp-admin2,203 ▲235.64 ▲0.0186.55 ▼5.0538.02 ▼2.13
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0136.75 ▼1.0633.90 ▼4.10
Add New Post /wp-admin/post-new.php1,534 ▼122.63 ▲4.16596.26 ▼48.2565.19 ▼7.54
Media Library /wp-admin/upload.php1,405 ▲24.24 ▼0.0197.08 ▼9.9342.12 ▼1.89

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
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/easexport-gravity-forms-scheduled-entries-export/easexport-gravity-forms-scheduled-entries-export.php on line 10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easexport-gravity-forms-scheduled-entries-export/easexport-gravity-forms-scheduled-entries-export.php on line 10
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easexport-gravity-forms-scheduled-entries-export/easexport-gravity-forms-scheduled-entries-export.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/easexport-gravity-forms-scheduled-entries-export/easexport-gravity-forms-scheduled-entries-export.php:394

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: export, gf entries, entries, gravityforms, scheduled export

easexport-gravity-forms-scheduled-entries-export/easexport-gravity-forms-scheduled-entries-export.php Passed 13 tests

"Easexport - Gravity Forms Scheduled Entries Export" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
Automatically export a CSV report of form entries attached and send it to your email.

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
There were no executable files found in this plugin662 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2014635
JavaScript10025
CSS1002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.33
▷ Minimum class complexity2.00
▷ Maximum class complexity64.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/premium.png127.09KB33.38KB▼ 73.73%