84% export-post-info

Code Review | Export Post Info

WordPress plugin Export Post Info scored 84% from 54 tests.

About plugin

  • Plugin page: export-post-info
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Sep 23, 2023
  • Number of updates: 37
  • Update frequency: every 63.8 days
  • Top authors: apasionados (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 18,501 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.69ms] Passed 4 tests

This is a short check of server-side resources used by Export Post Info
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.51 ▼4.53
Dashboard /wp-admin3.31 ▲0.0145.98 ▼1.42
Posts /wp-admin/edit.php3.36 ▲0.0144.85 ▼0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.05 ▼12.11
Media Library /wp-admin/upload.php3.24 ▲0.0135.81 ▲1.04
Export post info /wp-admin/options-general.php?page=export-post-info-settings3.3531.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Export Post Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.28 ▼1.084.93 ▲2.8540.50 ▼2.53
Dashboard /wp-admin2,210 ▲225.87 ▼0.06107.07 ▼4.4235.49 ▼10.12
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0539.90 ▲4.7834.34 ▼2.29
Add New Post /wp-admin/post-new.php1,537 ▲323.26 ▲0.04613.83 ▼78.6257.17 ▼11.60
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0395.89 ▼17.4140.23 ▼15.71
Export post info /wp-admin/options-general.php?page=export-post-info-settings9152.0223.2126.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/export-post-info/export-post-info.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/export-post-info/export-post-info-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: export word count, extract title, export post titles, export category, export title and url...

export-post-info/export-post-info.php Passed 13 tests

"Export Post Info" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
This plugin exports posts Date published, Post title, Word Count, Status, URL and Category to a CSV file

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 plugin392 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33728257
PO File13737135

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
love_bw.png1.13KB0.34KB▼ 70.07%