72% tipmewp

Code Review | TipMeWP

WordPress plugin TipMeWP scored72%from 54 tests.

About plugin

  • Plugin page: tipmewp
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Jan 9, 2015
  • Latest release: Jan 9, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: phonebook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.30MB] [CPU: ▼16.08ms] Passed 4 tests

An overview of server-side resources used by TipMeWP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0134.30 ▼11.43
Dashboard /wp-admin3.34 ▲0.0345.05 ▼4.56
Posts /wp-admin/edit.php3.39 ▲0.0350.44 ▲4.57
Add New Post /wp-admin/post-new.php4.63 ▼1.2646.83 ▼48.67
Media Library /wp-admin/upload.php3.26 ▲0.0335.39 ▲0.34
TipMeWP /wp-admin/options-general.php?page=tipmewp3.2030.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TipMeWP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.60 ▼0.771.58 ▼0.6444.50 ▼0.78
Dashboard /wp-admin2,210 ▲195.80 ▲0.7898.86 ▼7.3939.51 ▼4.00
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0638.34 ▲2.7935.87 ▲4.38
Add New Post /wp-admin/post-new.php1,534 ▲118.36 ▼4.80607.40 ▼6.6950.90 ▼5.87
Media Library /wp-admin/upload.php1,386 ▼24.21 ▼0.0294.63 ▼5.7243.00 ▼2.94
TipMeWP /wp-admin/options-general.php?page=tipmewp8352.0124.2625.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tipmewp
    • > Notice in wp-content/plugins/tipmewp/admin/settings.php+70
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tipmewp/tipmewp.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tipmewp/admin/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Donate link: Invalid URI ("none")
You can take inspiration from this readme.txt

tipmewp/tipmewp.php 92% from 13 tests

"TipMeWP" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 335 characters long)

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
No dangerous file extensions were detected121 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25233121

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.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
5 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tipme2.png8.56KB3.90KB▼ 54.45%
no-twitter.png53.82KB0.59KB▼ 98.91%
tipme3.png8.87KB0.72KB▼ 91.86%
no-twitter-1pix.png1.47KB0.09KB▼ 93.71%
tipme1.png2.54KB2.54KB0.19%