74% woozapp

Code Review | Woozapp

WordPress plugin Woozapp scored74%from 54 tests.

About plugin

  • Plugin page: woozapp
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5
  • WordPress version: 6.3.1
  • First release: Jul 11, 2016
  • Latest release: Jul 19, 2016
  • Number of updates: 13
  • Update frequency: every 0.7 days
  • Top authors: appandmap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,597 total downloads

Benchmarks

Plugin footprint 65% 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.11MB] [CPU: ▲0.83ms] Passed 4 tests

This is a short check of server-side resources used by Woozapp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1048.09 ▲2.60
Dashboard /wp-admin3.41 ▲0.1153.79 ▲3.25
Posts /wp-admin/edit.php3.51 ▲0.1559.49 ▼0.02
Add New Post /wp-admin/post-new.php6.01 ▲0.1397.03 ▼2.52
Media Library /wp-admin/upload.php3.34 ▲0.1148.01 ▲5.88

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 117 new files
Database: 1 new table, 6 new options
New tables
woozapp
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Woozapp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.66 ▼0.751.71 ▼0.1139.62 ▼3.12
Dashboard /wp-admin2,229 ▲376.06 ▲1.1296.03 ▼23.3942.79 ▼0.78
Posts /wp-admin/edit.php2,112 ▲232.04 ▼0.0041.68 ▲5.5637.03 ▲3.47
Add New Post /wp-admin/post-new.php1,531 ▲1123.60 ▲0.43670.84 ▲4.9750.11 ▼12.31
Media Library /wp-admin/upload.php1,402 ▲144.24 ▲0.0396.73 ▼16.7843.83 ▼4.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woozapp/views/admin/mailNewDemo.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add a description for screenshot #2 in woozapp/assets to your readme.txt
Please take inspiration from this readme.txt

woozapp/index.php 92% from 13 tests

The main PHP script in "Woozapp" version 1.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woozapp.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin4,140 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
PHP515513,1272,115
JSON2001,031
Sass2097103504
JavaScript355150275
YAML1633186
XML15227
CSS1011
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.17
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces18
Interfaces3
Traits1
Classes38
▷ Abstract classes37.89%
▷ Concrete classes3592.11%
▷ Final classes2468.57%
Methods133
▷ Static methods3123.31%
▷ Public methods10881.20%
▷ Protected methods64.51%
▷ Private methods1914.29%
Functions14
▷ Named functions535.71%
▷ Anonymous functions964.29%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/imgs/mockups/mockup-mobile-android.png99.18KB43.15KB▼ 56.49%
assets/imgs/thumbnail-thank-you.png152.51KB57.57KB▼ 62.25%