78% content-audit-exporter

Code Review | Content Audit Exporter

WordPress plugin Content Audit Exporter scored78%from 54 tests.

About plugin

  • Plugin page: content-audit-exp...
  • Plugin version: 1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 24, 2020
  • Latest release: Aug 19, 2022
  • Number of updates: 11
  • Update frequency: every 65.9 days
  • Top authors: productivelaziness (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.63ms] Passed 4 tests

This is a short check of server-side resources used by Content Audit Exporter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1034.62 ▼0.71
Dashboard /wp-admin3.40 ▲0.0543.88 ▼13.59
Posts /wp-admin/edit.php3.51 ▲0.1547.46 ▲2.04
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.36 ▼14.27
Media Library /wp-admin/upload.php3.32 ▲0.0934.45 ▲4.51
Content Audit /wp-admin/tools.php?page=content-audit-exporter3.3333.86

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Content Audit Exporter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.15 ▼1.441.60 ▲0.0239.75 ▼1.12
Dashboard /wp-admin2,204 ▲134.86 ▼0.04108.19 ▲4.7236.49 ▼7.63
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0339.38 ▲4.0836.14 ▲5.87
Add New Post /wp-admin/post-new.php1,540 ▲2118.36 ▼4.86601.54 ▼56.0661.32 ▲6.53
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.0196.02 ▼3.7441.70 ▼5.79
Content Audit /wp-admin/tools.php?page=content-audit-exporter8832.0724.7325.82

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

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

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/content-audit-exporter/content-audit-exporter.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/content-audit-exporter/templates/admin/settings.php:4
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/examples/basic-xlsx.php on line 3
    • > PHP Warning
      require(wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/examples/basic-xlsx.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'kasparsd\\MiniSheets\\AbstractBuilder' not found in wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/src/XlsxBuilder.php:5
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/examples/basic-xml.php on line 3
    • > PHP Warning
      require(wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/examples/basic-xml.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'kasparsd\\MiniSheets\\AbstractBuilder' not found in wp-content/plugins/content-audit-exporter/vendor/kasparsd/mini-sheets-php/src/XmlBuilder.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PLContentAuditExporter\\Base\\BaseController' not found in wp-content/plugins/content-audit-exporter/includes/Pages/Settings.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: audit, content, content audit

content-audit-exporter/content-audit-exporter.php 92% from 13 tests

The main PHP script in "Content Audit Exporter" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Git Repository: A Git repository was detected inside this plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,276 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP202032991,033
JSON300134
CSS18048
XML23031
YAML16116
Markdown117014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.18
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes110.00%
Methods58
▷ Static methods813.79%
▷ Public methods5594.83%
▷ Protected methods11.72%
▷ Private methods23.45%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin