78% export-assist

Code Review | Export Assist

WordPress plugin Export Assist scored 78% from 54 tests.

About plugin

  • Plugin page: export-assist
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Jan 5, 2021
  • Latest release: Mar 11, 2021
  • Number of updates: 6
  • Update frequency: every 11.8 days
  • Top authors: shoaiyb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.69ms] Passed 4 tests

An overview of server-side resources used by Export Assist
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.64 ▲1.79
Dashboard /wp-admin3.31 ▲0.0143.13 ▼4.96
Posts /wp-admin/edit.php3.36 ▲0.0147.04 ▲1.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.22 ▲6.86
Media Library /wp-admin/upload.php3.23 ▲0.0033.62 ▼1.36
Export Assist /wp-admin/options-general.php?page=export-assist/plugin.php3.2129.88

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Export Assist
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.51 ▼0.861.84 ▲0.0140.55 ▼5.61
Dashboard /wp-admin2,210 ▲214.83 ▼0.12110.86 ▼4.6241.38 ▼3.35
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0539.46 ▲4.3735.02 ▼1.65
Add New Post /wp-admin/post-new.php1,540 ▲1323.46 ▲0.24582.97 ▼78.0850.55 ▼3.03
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.0796.28 ▼1.1442.57 ▲1.74
Export Assist /wp-admin/options-general.php?page=export-assist/plugin.php9152.3126.3934.42

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/export-assist/go.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/export-assist/plugin.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=export-assist/plugin.php
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=export-assist%2Fplugin.php 222:75 Uncaught TypeError: Cannot set properties of undefined (setting 'selected')

Optimizations

Plugin configuration 93% 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
7 plugin tags: xml, blogger, posts, blogspot, pages...

export-assist/plugin.php 85% from 13 tests

The primary PHP file in "Export Assist" version 1.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("export-assist.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin437 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24557437

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.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
No PNG files were detected