74% nyzo-tip

Code Review | Nyzo tip button

WordPress plugin Nyzo tip button scored74%from 54 tests.

About plugin

  • Plugin page: nyzo-tip
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Sep 4, 2020
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: angainordev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /342 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼40.53ms] Passed 4 tests

Analyzing server-side resources used by Nyzo tip button
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0724.66 ▼18.29
Dashboard /wp-admin3.01 ▼0.3425.27 ▼42.47
Posts /wp-admin/edit.php3.01 ▼0.3524.52 ▼24.89
Add New Post /wp-admin/post-new.php3.01 ▼2.8826.09 ▼76.47
Media Library /wp-admin/upload.php3.01 ▼0.2228.06 ▼8.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
nyzo_options
db_upgraded

Browser metrics Passed 4 tests

Nyzo tip button: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.75 ▲0.501.69 ▼0.2241.91 ▼1.90
Dashboard /wp-admin2,211 ▲315.60 ▲0.0696.66 ▲6.6843.10 ▲0.10
Posts /wp-admin/edit.php2,113 ▲132.04 ▲0.0039.25 ▲0.1035.85 ▼0.87
Add New Post /wp-admin/post-new.php1,553 ▲422.75 ▼0.32676.38 ▼2.1251.41 ▲0.78
Media Library /wp-admin/upload.php1,416 ▲164.21 ▼0.09103.25 ▼0.3844.91 ▼2.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • nyzo_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nyzo-tip/options.tmpl.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nyzo-tip/nyzo-tip.php:16

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: nyzo, tip

nyzo-tip/nyzo-tip.php Passed 13 tests

The principal PHP file in "Nyzo tip button" v. 0.1.1 is loaded by WordPress automatically on each request
10 characters long description:
Nyzo rules

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2111391

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
nyzo-extension-installed-256.png24.66KB11.32KB▼ 54.09%
nyzo-extension-not-installed-256.png24.56KB11.50KB▼ 53.16%