10% widont-part-deux

Code Review | Widon't Part Deux

WordPress plugin Widon't Part Deux scored 10% from 54 tests.

About plugin

  • Plugin page: widont-part-deux
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 6.3.1
  • First release: Oct 2, 2013
  • Latest release: Sep 2, 2014
  • Number of updates: 19
  • Update frequency: every 30.7 days
  • Top authors: morganestes (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 2,463 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/widont-part-deux/wp-widont.php+103
    Illegal string offset 'version'

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.91ms] Passed 4 tests

Server-side resources used by Widon't Part Deux
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.24 ▼2.25
Dashboard /wp-admin3.35 ▲0.0546.57 ▲0.12
Posts /wp-admin/edit.php3.46 ▲0.1148.92 ▲5.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.49 ▼1.66
Media Library /wp-admin/upload.php3.27 ▲0.0435.12 ▲0.17
Widon’t Part Deux /wp-admin/options-general.php?page=widont-part-deux/wp-widont.php3.2432.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widont_deux
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Widon't Part Deux
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.21 ▼1.081.80 ▼0.1840.49 ▼4.78
Dashboard /wp-admin2,210 ▲224.87 ▼1.04107.83 ▲3.9041.75 ▲5.46
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0239.22 ▲0.6235.06 ▲0.88
Add New Post /wp-admin/post-new.php1,536 ▲1623.34 ▲0.18607.35 ▼23.1949.39 ▼5.77
Media Library /wp-admin/upload.php1,389 ▼24.28 ▲0.0696.05 ▼6.9441.02 ▼4.24
Widon’t Part Deux /wp-admin/options-general.php?page=widont-part-deux/wp-widont.php7882.0323.8031.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widont_deux
    • widget_recent-comments
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/widont-part-deux/wp-widont.php:30

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: title, typography, widows, orphans

widont-part-deux/wp-widont.php 85% from 13 tests

The main file in "Widon't Part Deux" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 288 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("widont-part-deux.php" instead of "wp-widont.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected157 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP149106157

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1593.75%
▷ Protected methods16.25%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected