84% tdh-export

Code Review | TDH Export

WordPress plugin TDH Export scored 84% from 54 tests.

About plugin

  • Plugin page: tdh-export
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Nov 25, 2021
  • Latest release: Jun 21, 2022
  • Number of updates: 17
  • Update frequency: every 12.3 days
  • Top authors: horisawak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by TDH Export
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.77 ▼5.48
Dashboard /wp-admin3.31 ▲0.0149.07 ▼0.53
Posts /wp-admin/edit.php3.36 ▲0.0148.59 ▼0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.51 ▲7.92
Media Library /wp-admin/upload.php3.23 ▲0.0137.10 ▼0.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for TDH Export
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲2713.66 ▼0.571.56 ▼0.1539.52 ▼17.15
Dashboard /wp-admin2,219 ▲134.84 ▼1.0799.05 ▼8.7140.23 ▼1.10
Posts /wp-admin/edit.php2,105 ▲162.00 ▲0.0139.77 ▼0.1135.63 ▼0.97
Add New Post /wp-admin/post-new.php1,546 ▲3223.24 ▲5.72655.04 ▲7.9254.38 ▲2.18
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.0599.45 ▼7.2643.78 ▼5.41

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tdh-export/tdh-export.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add a description for screenshot #2 in tdh-export/assets to your readme.txt
Please take inspiration from this readme.txt

tdh-export/tdh-export.php Passed 13 tests

This is the main PHP file of "TDH Export" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Export TDH (Title-tag, meta Description, H-tag) with a single click.

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 plugin626 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP171198495
PO File1273279
CSS10637
JavaScript10615

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity9.38
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin