84% punchlist

Code Review | Punchlist

WordPress plugin Punchlist scored84%from 54 tests.

About plugin

  • Plugin page: punchlist
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2021
  • Latest release: Jan 10, 2023
  • Number of updates: 55
  • Update frequency: every 7.4 days
  • Top authors: plnic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.17ms] Passed 4 tests

Server-side resources used by Punchlist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.11 ▲0.91
Dashboard /wp-admin3.46 ▲0.1645.71 ▲0.44
Posts /wp-admin/edit.php3.57 ▲0.2248.97 ▲1.36
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.13 ▼3.40
Media Library /wp-admin/upload.php3.38 ▲0.1637.00 ▲2.99

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Punchlist
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲17613.33 ▼0.6417.01 ▲15.1340.47 ▲0.73
Dashboard /wp-admin2,316 ▲1395.67 ▲0.0799.63 ▲10.2242.68 ▼2.71
Posts /wp-admin/edit.php2,222 ▲1432.08 ▲0.0638.45 ▲2.5336.07 ▲4.92
Add New Post /wp-admin/post-new.php6,276 ▲4,74726.06 ▲2.96862.10 ▲254.4888.39 ▲38.65
Media Library /wp-admin/upload.php1,518 ▲1184.30 ▲0.15106.10 ▲4.7345.58 ▲0.07

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Client.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/Request.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/FnStream.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/punchlist/vendor/guzzlehttp/psr7/src/CachingStream.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Admin page), #2 (Editor)
The official readme.txt might help

punchlist/bootstrap.php 92% from 13 tests

The main PHP script in "Punchlist" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("punchlist.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected15,272 lines of code in 162 files:
LanguageFilesBlank linesComment linesLines of code
PHP1272,1085,78110,376
Markdown161,28003,667
JSON13101,063
JavaScript28097
CSS18031
SVG10022
make1409
YAML1007

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.85
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces12
Interfaces26
Traits3
Classes82
▷ Abstract classes00.00%
▷ Concrete classes82100.00%
▷ Final classes3542.68%
Methods766
▷ Static methods14619.06%
▷ Public methods64884.60%
▷ Protected methods50.65%
▷ Private methods11314.75%
Functions134
▷ Named functions4332.09%
▷ Anonymous functions9167.91%
Constants63
▷ Global constants00.00%
▷ Class constants63100.00%
▷ Public constants5282.54%

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
4 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png67.72KB20.34KB▼ 69.97%
assets/banner-772x250.png30.54KB10.25KB▼ 66.44%
assets/screenshot-1.png86.92KB22.03KB▼ 74.65%
assets/icon-256x256.png6.33KB2.70KB▼ 57.30%