10% wordable

Code Review | Wordable - Export Google Docs to WordPress

WordPress plugin Wordable - Export Google Docs to WordPress scored10%from 54 tests.

About plugin

  • Plugin page: wordable
  • Plugin version: 8.2.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 25, 2019
  • Latest release: Jun 17, 2023
  • Number of updates: 55
  • Update frequency: every 27.6 days
  • Top authors: wordable (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /33,318 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wordable/includes/wordable_plugin.php+263
    Trying to get property 'cache_updated_at' of non-object

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

An overview of server-side resources used by Wordable - Export Google Docs to WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.08 ▼1.09
Dashboard /wp-admin3.32 ▲0.0247.90 ▼5.51
Posts /wp-admin/edit.php3.44 ▲0.0849.33 ▼3.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.00 ▼12.57
Media Library /wp-admin/upload.php3.25 ▲0.0235.43 ▲1.30
Wordable /wp-admin/options-general.php?page=wordable-plugin3.28495.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables
wp_wordable
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wordable - Export Google Docs to WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11413.57 ▼0.711.82 ▼0.0542.25 ▼0.70
Dashboard /wp-admin2,254 ▲664.90 ▼0.16103.89 ▼16.5969.99 ▲24.13
Posts /wp-admin/edit.php2,154 ▲652.01 ▼0.0339.07 ▲3.0235.47 ▲3.45
Add New Post /wp-admin/post-new.php1,567 ▲5323.27 ▲5.77700.54 ▲19.0659.32 ▲0.77
Media Library /wp-admin/upload.php1,451 ▲664.31 ▲0.10100.86 ▼2.5774.11 ▲27.89
Wordable /wp-admin/options-general.php?page=wordable-plugin9672.2933.6255.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_wordable
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% 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 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wordable/settings/views/_category_tree_node.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wordable/includes/wordable_plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WordablePlugin' not found in wp-content/plugins/wordable/settings/index.php:3
    • > PHP Notice
      Undefined variable: categories_tree in wp-content/plugins/wordable/settings/views/_category_tree_node.php on line 2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/wordable/settings/views/_category_tree_node.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wordable/settings/views/authors.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wordable/settings/views/categories.php:1
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wordable/settings/views/_category_tree_node.php on line 2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wordable/settings/views/index.php:5
    • > PHP Warning
      array_slice() expects parameter 1 to be array, null given in wp-content/plugins/wordable/settings/views/_category_tree_node.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WordablePlugin' not found in wp-content/plugins/wordable/includes/activator.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: posts, pages

wordable/wordable.php 92% from 13 tests

The principal PHP file in "Wordable - Export Google Docs to WordPress" v. 8.2.6 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0.0" instead of "5.0")

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
There were no executable files found in this plugin3,241 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS3772502,334
PHP1520520843
SVG40045
JavaScript223819

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.43
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1216.44%
▷ Public methods73100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
settings/images/logo.png4.75KB2.83KB▼ 40.44%