90% tika-doc-pdf-indexer

Code Review | Tika Doc PDF Indexer

WordPress plugin Tika Doc PDF Indexer scored90%from 54 tests.

About plugin

  • Plugin page: tika-doc-pdf-indexer
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 2, 2019
  • Latest release: Oct 24, 2022
  • Number of updates: 8
  • Update frequency: every 136.0 days
  • Top authors: carl-alberto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /932 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼5.59ms] Passed 4 tests

An overview of server-side resources used by Tika Doc PDF Indexer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2044.35 ▲9.02
Dashboard /wp-admin3.52 ▲0.1748.68 ▼11.13
Posts /wp-admin/edit.php3.63 ▲0.2744.47 ▼2.58
Add New Post /wp-admin/post-new.php6.10 ▲0.2183.59 ▼13.45
Media Library /wp-admin/upload.php3.44 ▲0.2137.42 ▲4.79
Tika Indexer Settings /wp-admin/options-general.php?page=tika_doc_pdf_indexer_settings3.4439.13

Server storage [IO: ▲0.08MB] [DB: ▲0.31MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Tika Doc PDF Indexer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.34 ▼0.081.96 ▲0.3044.94 ▲4.35
Dashboard /wp-admin2,199 ▲225.64 ▼0.1596.58 ▲9.0442.35 ▼2.69
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0135.68 ▼5.0334.34 ▲0.76
Add New Post /wp-admin/post-new.php1,531 ▲523.26 ▼0.34632.79 ▼54.1860.32 ▲10.57
Media Library /wp-admin/upload.php1,407 ▲74.28 ▲0.0794.70 ▼8.0243.87 ▼0.26
Tika Indexer Settings /wp-admin/options-general.php?page=tika_doc_pdf_indexer_settings1,1013.0648.7724.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • tika_doc_pdf_indexer_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: plugin, wordpress

tika-doc-pdf-indexer/tika-doc-pdf-indexer.php Passed 13 tests

The main file in "Tika Doc PDF Indexer" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
This indexes your Docs or PDFs into meta datas when uploaded. Based on Apache Tika.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,001 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity21.75
▷ Minimum class complexity4.00
▷ Maximum class complexity62.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods25.13%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
There were not PNG files found in your plugin