79% wpuppy

Code Review | WPuppy

WordPress plugin WPuppy scored 79% from 54 tests.

About plugin

  • Plugin page: wpuppy
  • Plugin version:
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.8
  • WordPress version: 5.8.1
  • First release: Dec 5, 2016
  • Latest release: Jun 26, 2018
  • Number of updates: 125
  • Update frequency: every 4.5 days
  • Top authors: Sem Wong (92.8%)patrickvdw (8%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 5,941 total downloads


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
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼138.22ms] Passed 4 tests

An overview of server-side resources used by WPuppy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.07 ▲0.3536.46 ▲15.50
Dashboard /wp-admin3.30 ▲0.2441.89 ▼2.73
Posts /wp-admin/edit.php3.34 ▲0.2345.31 ▼0.01
Add New Post /wp-admin/post-new.php5.59 ▲0.1588.56 ▼555.14
Media Library /wp-admin/upload.php3.18 ▲0.1734.57 ▲5.00
Settings /wp-admin/admin.php?page=wpuppy/wpuppy-settings.php3.1529.68
WPuppy /wp-admin/admin.php?page=wpuppy/wpuppy-admin.php3.1628.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

WPuppy: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.94 ▲0.388.07 ▼2.2344.79 ▼3.52
Dashboard /wp-admin3,007 ▲735.91 ▼0.24134.30 ▼8.96110.50 ▼7.07
Posts /wp-admin/edit.php2,773 ▲342.71 ▼0.0165.15 ▲1.0293.02 ▼2.54
Add New Post /wp-admin/post-new.php1,894 ▲27919.15 ▼2.19383.43 ▲102.29104.36 ▲0.56
Media Library /wp-admin/upload.php1,841 ▲345.04 ▼0.01153.70 ▲2.69123.84 ▲4.00
Settings /wp-admin/admin.php?page=wpuppy/wpuppy-settings.php1,0432.0854.5667.56
WPuppy /wp-admin/admin.php?page=wpuppy/wpuppy-admin.php1,1132.0947.7973.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • wpuppy_setup

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=wpuppy/wpuppy-admin.php
    • > Notice in wp-content/plugins/wpuppy/wpuppy-admin.php+6
    Undefined index: wpuppy-action
    • > GET request to /wp-admin/admin.php?page=wpuppy/wpuppy-admin.php
    • > Notice in wp-content/plugins/wpuppy/wpuppy-cachecleaner.php+49
    Undefined index: wpuppy

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
Please fix the following
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpuppy/wpuppy-api.php
    • > /wp-content/plugins/wpuppy/recovery/wpuppy-reactivate.php
    • > /wp-content/plugins/wpuppy/recovery/wpuppy-restore.php
    • > /wp-content/plugins/wpuppy/wpuppy-login.php
    • > /wp-content/plugins/wpuppy/wpuppy.php
    • > /wp-content/plugins/wpuppy/wpuppy-settings.php
    • > /wp-content/plugins/wpuppy/wpuppy-admin.php
    • > /wp-content/plugins/wpuppy/wpuppy-setup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: wordpress update services, theme update, security, update plugins, wordpress auto update...

wpuppy/wpuppy.php Passed 13 tests

The main PHP file in "WPuppy" ver. adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
This is the plugin used by WPuppy web Application to communicate to Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected5,797 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity39.96
▷ Minimum class complexity1.00
▷ Maximum class complexity557.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
▷ Abstract classes626.09%
▷ Concrete classes1773.91%
▷ Final classes00.00%
▷ Static methods73.03%
▷ Public methods19885.71%
▷ Protected methods00.00%
▷ Private methods3314.29%
▷ Named functions1482.35%
▷ Anonymous functions317.65%
▷ Global constants6992.00%
▷ Class constants68.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin