84% tippingboard

Code Review | Tippingboard

WordPress plugin Tippingboard scored84%from 54 tests.

About plugin

  • Plugin page: tippingboard
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Apr 29, 2019
  • Latest release: Apr 29, 2019
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: vicbusiness (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼4.49ms] Passed 4 tests

A check of server-side resources used by Tippingboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2542.20 ▲3.29
Dashboard /wp-admin3.62 ▲0.3250.80 ▼3.26
Posts /wp-admin/edit.php3.67 ▲0.3250.22 ▼8.80
Add New Post /wp-admin/post-new.php6.14 ▲0.2698.43 ▼4.06
Media Library /wp-admin/upload.php3.48 ▲0.2534.40 ▼1.85

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Tippingboard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.24 ▼0.121.97 ▲0.2640.84 ▼2.06
Dashboard /wp-admin2,195 ▲155.61 ▼0.0492.85 ▼8.7139.94 ▲0.23
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0640.59 ▲0.1135.58 ▲0.29
Add New Post /wp-admin/post-new.php1,526 ▼523.55 ▲0.46673.83 ▲60.3261.49 ▲7.81
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.07103.03 ▼3.8141.58 ▼5.09

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 44× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/psr7/src/CachingStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/tippingboard/vendor/psr/http-message/src/ResponseInterface.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/psr7/src/BufferStream.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/psr7/src/Stream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/tippingboard/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/guzzle/src/Pool.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/tippingboard/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === tippingboard === )
The official readme.txt is a good inspiration

tippingboard/tippingboard.php 92% from 13 tests

This is the main PHP file of "Tippingboard" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected11,885 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
PHP931,6614,7628,191
Markdown1099503,193
JSON700460
XML14018
YAML14014
make1409

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.43
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces8
Interfaces14
Traits2
Classes64
▷ Abstract classes00.00%
▷ Concrete classes64100.00%
▷ Final classes812.50%
Methods636
▷ Static methods6710.53%
▷ Public methods52382.23%
▷ Protected methods40.63%
▷ Private methods10917.14%
Functions144
▷ Named functions5840.28%
▷ Anonymous functions8659.72%
Constants50
▷ Global constants00.00%
▷ Class constants50100.00%
▷ Public constants50100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
google-play-badge.png13.63KB6.37KB▼ 53.29%