84% woodo

Code Review | autometa's WOODO

WordPress plugin autometa's WOODO scored84%from 54 tests.

About plugin

  • Plugin page: woodo
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Sep 29, 2016
  • Latest release: Jan 18, 2018
  • Number of updates: 14
  • Update frequency: every 34.0 days
  • Top authors: JorgeAmVF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /504 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.55ms] Passed 4 tests

This is a short check of server-side resources used by autometa's WOODO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.60 ▲4.74
Dashboard /wp-admin3.31 ▼0.0345.04 ▼16.90
Posts /wp-admin/edit.php3.36 ▲0.0150.01 ▼3.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.64 ▼19.25
Media Library /wp-admin/upload.php3.23 ▲0.0136.11 ▲1.21

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for autometa's WOODO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.19 ▼0.102.23 ▲0.5447.20 ▲2.72
Dashboard /wp-admin2,195 ▲155.61 ▲0.0192.27 ▲9.9241.84 ▼0.45
Posts /wp-admin/edit.php2,100 ▼32.03 ▼0.1039.96 ▼4.0336.77 ▼2.70
Add New Post /wp-admin/post-new.php1,526 ▼223.22 ▲0.24657.88 ▼18.7657.47 ▲5.50
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0895.54 ▼13.0240.05 ▼11.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woodo/woodo.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: category, shortcode, tag, cloud, metadata...

woodo/woodo.php 92% from 13 tests

The main PHP script in "autometa's WOODO" version 2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)

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
Success! There were no dangerous files found in this plugin28 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172428

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions3
▷ Named functions3100.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
No PNG files were detected