78% plugin-info-to-csv

Code Review | Plugin Info to CSV

WordPress plugin Plugin Info to CSV scored78%from 54 tests.

About plugin

  • Plugin page: plugin-info-to-csv
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Jun 5, 2017
  • Latest release: Nov 6, 2019
  • Number of updates: 29
  • Update frequency: every 30.6 days
  • Top authors: abrarahmedg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

An overview of server-side resources used by Plugin Info to CSV
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.26 ▼1.07
Dashboard /wp-admin3.32 ▲0.0254.89 ▲8.17
Posts /wp-admin/edit.php3.37 ▲0.0248.91 ▼5.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.60 ▼5.42
Media Library /wp-admin/upload.php3.25 ▲0.0238.57 ▼0.59
Plugin Info to CSV /wp-admin/plugins.php?page=plugininfocsv3.1930.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Info to CSV
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.091.71 ▼0.0738.84 ▼1.12
Dashboard /wp-admin2,210 ▲224.85 ▼0.10108.43 ▼9.6337.16 ▼7.18
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0239.95 ▼1.1135.85 ▼0.40
Add New Post /wp-admin/post-new.php1,536 ▲323.33 ▼0.16625.53 ▲24.7753.86 ▼6.48
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.0396.53 ▼0.4642.96 ▲0.94
Plugin Info to CSV /wp-admin/plugins.php?page=plugininfocsv7502.0623.6123.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • pluginsdata_option_name

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+32
    Use of undefined constant Title - assumed 'Title' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+32
    Use of undefined constant TextDomain - assumed 'TextDomain' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+32
    Use of undefined constant DomainPath - assumed 'DomainPath' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+32
    Use of undefined constant Network - assumed 'Network' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+36
    file_get_contents(https://api.wordpress.org/plugins/info/1.0/hello.php.json): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+39
    Use of undefined constant available_version - assumed 'available_version' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Notice in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+39
    Trying to get property 'version' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+40
    Use of undefined constant required_version - assumed 'required_version' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Notice in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+40
    Trying to get property 'requires' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+41
    Use of undefined constant tested_version - assumed 'tested_version' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Notice in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+41
    Trying to get property 'tested' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+42
    Use of undefined constant last_updated - assumed 'last_updated' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Notice in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+42
    Trying to get property 'last_updated' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/plugins.php?page=plugininfocsv
    • > Warning in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php+48
    Use of undefined constant status - assumed 'status' (this will throw an Error in a future version of PHP)

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/plugin-info-to-csv/Plugin-Info-to-CSV.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 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
6 plugin tags: plugin info, export, plugin info to csv, plugin export, plugin meta data...

plugin-info-to-csv/Plugin-Info-to-CSV.php 77% from 13 tests

This is the main PHP file of "Plugin Info to CSV" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 334 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("plugin-info-to-csv.php" instead of "Plugin-Info-to-CSV.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 plugin81 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP130981

PHP code Passed 2 tests

This is a short overview 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.21
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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