83% docxpresso

Code Review | Docxpresso

WordPress plugin Docxpresso scored83%from 54 tests.

About plugin

  • Plugin page: docxpresso
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Jun 18, 2015
  • Latest release: Dec 28, 2021
  • Number of updates: 78
  • Update frequency: every 30.6 days
  • Top authors: docxpersso (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

3,000+ active /69,448 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.71ms] Passed 4 tests

Analyzing server-side resources used by Docxpresso
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.62 ▼2.94
Dashboard /wp-admin3.33 ▲0.0247.68 ▲0.19
Posts /wp-admin/edit.php3.38 ▲0.0245.12 ▼3.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.79 ▲3.80
Media Library /wp-admin/upload.php3.25 ▲0.0236.35 ▲3.38
Docxpresso /wp-admin/options-general.php?page=docxpresso/options.php3.2332.47

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Docxpresso
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼0.991.79 ▲0.1445.53 ▲1.24
Dashboard /wp-admin2,207 ▲195.81 ▲0.7697.74 ▼15.8437.95 ▼7.89
Posts /wp-admin/edit.php2,096 ▲72.05 ▼0.0039.26 ▲2.6334.85 ▼0.25
Add New Post /wp-admin/post-new.php6,420 ▲4,90328.36 ▲10.65878.24 ▲216.5539.65 ▼17.19
Media Library /wp-admin/upload.php1,394 ▲124.27 ▲0.0394.99 ▼3.6240.31 ▼1.75
Docxpresso /wp-admin/options-general.php?page=docxpresso/options.php9212.0522.2629.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/docxpresso/plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/docxpresso/options.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
Please take inspiration from this readme.txt

docxpresso/plugin.php 85% from 13 tests

The entry point to "Docxpresso" version 2.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("docxpresso.php" instead of "plugin.php")

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
Good job! No executable or dangerous file extensions detected5,552 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
Pascal73656,5073,603
JavaScript106649923
CSS68153838
PHP32311180
INI1068

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin