84% seraphinite-post-docx-source

Code Review | Seraphinite Post .DOCX Source

WordPress plugin Seraphinite Post .DOCX Source scored84%from 54 tests.

About plugin

  • Plugin page: seraphinite-post-...
  • Plugin version: 2.16.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2016
  • Latest release: Jul 29, 2023
  • Number of updates: 106
  • Update frequency: every 24.2 days
  • Top authors: seraphinitesoft (100%)

Code review

54 tests

User reviews

42 reviews

Install metrics

1,000+ active /26,426 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.21MB] [CPU: ▲0.73ms] Passed 4 tests

Analyzing server-side resources used by Seraphinite Post .DOCX Source
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /6.15 ▲2.6958.39 ▲18.81
Dashboard /wp-admin6.29 ▲2.9864.01 ▲17.80
Posts /wp-admin/edit.php6.34 ▲2.9867.61 ▲17.62
Add New Post /wp-admin/post-new.php6.07 ▲0.1857.69 ▼51.31
Media Library /wp-admin/upload.php6.21 ▲2.9854.60 ▲21.51
.DOCX Source /wp-admin/options-general.php?page=seraph_pds_settings6.1651.29

Server storage [IO: ▲2.33MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
seraph_pds_RmtCfg
seraph_pds_State
seraph_pds_Sett
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Seraphinite Post .DOCX Source: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11513.60 ▼0.652.02 ▲0.2636.22 ▼14.86
Dashboard /wp-admin2,212 ▲215.87 ▲0.9895.39 ▼11.2877.33 ▲31.89
Posts /wp-admin/edit.php2,116 ▲242.02 ▲0.0238.30 ▼1.7433.43 ▼4.74
Add New Post /wp-admin/post-new.php7,512 ▲5,97020.69 ▲2.331,034.04 ▲416.5246.82 ▼18.71
Media Library /wp-admin/upload.php1,409 ▲214.18 ▼0.03111.54 ▲11.6145.34 ▲1.32
.DOCX Source /wp-admin/options-general.php?page=seraph_pds_settings1,4302.2951.3162.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • seraph_pds_Sett
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • seraph_pds_RmtCfg
    • seraph_pds_State
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/seraphinite-post-docx-source/helper.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seraphinite-post-docx-source/helper.php on line 5
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/seraphinite-post-docx-source/helper.php on line 5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
8 plugin tags: search engine optimization, wordpress paste from word, msword, batch, docx...

seraphinite-post-docx-source/seraphinite-post-docx-source.php Passed 13 tests

The main file in "Seraphinite Post .DOCX Source" v. 2.16.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Save your time by automatically converting from .DOCX to content with all WordPress post attributes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin14,349 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP102,7353210,733
JavaScript9153,456
HTML100149
XML1205
JSON4004
CSS2002

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.47
Average class complexity72.04
▷ Minimum class complexity1.00
▷ Maximum class complexity340.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods555
▷ Static methods51492.61%
▷ Public methods48887.93%
▷ Protected methods00.00%
▷ Private methods6712.07%
Functions116
▷ Named functions5850.00%
▷ Anonymous functions5850.00%
Constants99
▷ Global constants11.01%
▷ Class constants9898.99%
▷ Public constants98100.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Images/VendorLogo.png1.47KB1.45KB▼ 1.40%
icon.png0.38KB0.38KB0.00%
Images/ProductLogo.png3.45KB2.46KB▼ 28.64%