84% logicaldoc

Code Review | LogicalDOC WordPress Explorer

WordPress plugin LogicalDOC WordPress Explorer scored84%from 54 tests.

About plugin

  • Plugin page: logicaldoc
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.6-5.9.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2016
  • Latest release: Mar 17, 2022
  • Number of updates: 25
  • Update frequency: every 76.5 days
  • Top authors: shakilodem (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼0.38ms] Passed 4 tests

Server-side resources used by LogicalDOC WordPress Explorer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5241.65 ▲7.15
Dashboard /wp-admin3.82 ▲0.5242.59 ▼1.21
Posts /wp-admin/edit.php3.87 ▲0.5248.71 ▲8.94
Add New Post /wp-admin/post-new.php6.46 ▲0.5794.07 ▼10.14
Media Library /wp-admin/upload.php3.76 ▲0.5333.21 ▲2.67
List Configurations /wp-admin/edit.php?post_type=list_configurations3.7937.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LogicalDOC WordPress Explorer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲22913.93 ▼0.868.98 ▲7.5238.20 ▼5.17
Dashboard /wp-admin2,232 ▲414.91 ▲0.02111.93 ▲4.1941.95 ▲0.67
Posts /wp-admin/edit.php2,115 ▲262.03 ▲0.0139.94 ▲0.7735.27 ▼1.12
Add New Post /wp-admin/post-new.php6,728 ▲5,18625.84 ▲7.51959.67 ▲344.5538.85 ▼14.95
Media Library /wp-admin/upload.php1,414 ▲294.20 ▼0.07108.57 ▲11.9847.67 ▲5.15
List Configurations /wp-admin/edit.php?post_type=list_configurations1,0831.9837.6630.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Please fix the following items
  • 41× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logicaldoc/advanced-custom-fields/core/controllers/field_groups.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/logicaldoc/advanced-custom-fields/core/views/meta_box_fields.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/logicaldoc/advanced-custom-fields/core/fields/number.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logicaldoc/advanced-custom-fields/core/controllers/revisions.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/logicaldoc/advanced-custom-fields/core/fields/taxonomy.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/logicaldoc/advanced-custom-fields/core/fields/checkbox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/logicaldoc/advanced-custom-fields/core/fields/_functions.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/logicaldoc/advanced-custom-fields/core/fields/page_link.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logicaldoc/advanced-custom-fields/core/controllers/export.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/logicaldoc/advanced-custom-fields/core/views/meta_box_options.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
7 plugin tags: integration, software, logicaldoc, system, tool...

logicaldoc/logicaldoc.php 92% from 13 tests

This is the main PHP file of "LogicalDOC WordPress Explorer" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 288 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin47,696 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
PO File239,29713,65220,445
JavaScript225,1249,12012,572
PHP564,1834,70610,627
CSS111,0507033,987
INI10064
HTML1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity25.65
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes43
▷ Abstract classes00.00%
▷ Concrete classes43100.00%
▷ Final classes00.00%
Methods280
▷ Static methods31.07%
▷ Public methods280100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions64
▷ Named functions64100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
80 PNG files occupy 0.41MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/mimes/page_white_office.png0.76KB0.81KB0.00%
advanced-custom-fields/images/sprite@2x.png12.53KB4.91KB▼ 60.81%
assets/mimes/page_excel.png0.80KB0.93KB0.00%
assets/mimes/cube_yellow.png2.68KB2.17KB▼ 18.91%
advanced-custom-fields/images/arrows.png0.24KB0.24KB0.00%