68% pop-over-xyz

Code Review | PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text

WordPress plugin PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text scored 68% from 54 tests.

About plugin

  • Plugin page: pop-over-xyz
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.1
  • WordPress version: 5.8.1
  • First release: Jul 19, 2021
  • Latest release: Jul 19, 2021
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: webmuehle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 66 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
Install script ran successfully

Server metrics [RAM: ▲4.66MB] [CPU: ▼113.24ms] Passed 4 tests

Server-side resources used by PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /8.24 ▲5.5258.89 ▲33.16
Dashboard /wp-admin8.26 ▲5.2175.08 ▲28.85
Posts /wp-admin/edit.php8.26 ▲5.1673.54 ▲29.22
Add New Post /wp-admin/post-new.php8.47 ▲3.03117.93 ▼543.51
Media Library /wp-admin/upload.php8.26 ▲5.2661.70 ▲32.49
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.2655.71

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 191 new files
Database: no new tables, 4 new options
New WordPress options
fs_gdpr
fs_active_plugins
fs_accounts
fs_debug_mode

Browser metrics Passed 4 tests

A check of browser resources used by PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,855 ▲25916.74 ▲1.1013.05 ▲2.8057.79 ▲5.91
Dashboard /wp-admin3,034 ▲1035.89 ▼0.26145.23 ▼16.97129.24 ▲14.76
Posts /wp-admin/edit.php2,805 ▲662.82 ▲0.1369.60 ▼2.81110.84 ▲5.83
Add New Post /wp-admin/post-new.php1,714 ▲3118.53 ▲0.12385.97 ▼21.28115.86 ▼2.51
Media Library /wp-admin/upload.php1,797 ▼105.00 ▼0.03168.00 ▲19.85145.49 ▲21.69
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,5002.2458.0382.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/pop-over-xyz/freemius/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_gdpr
    • fs_debug_mode
    • fs_accounts
    • fs_active_plugins

Smoke tests 50% 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 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pop-over-xyz/freemius/templates/ajax-loader.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/pop-over-xyz/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/pop-over-xyz/freemius/templates/account/partials/addon.php on line 6

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: hover over, text notification, tool tip, pop over

pop-over-xyz/popoverxyz.php 92% from 13 tests

"PopOverXYZ - Show Light Weight Beautiful Tool Tips On Any Text" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pop-over-xyz.php" instead of "popoverxyz.php")

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin51,994 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1087,24916,08530,379
CSS171,4684113,022
JavaScript82,0761,7477,960
JSON200419
Markdown1680214

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity90.20
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.65
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes45
▷ Abstract classes24.44%
▷ Concrete classes4395.56%
▷ Final classes00.00%
Methods1,132
▷ Static methods17315.28%
▷ Public methods79269.96%
▷ Protected methods151.33%
▷ Private methods32528.71%
Functions100
▷ Named functions100100.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants9879.67%
▷ Class constants2520.33%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/pop-over.png9.16KB5.26KB▼ 42.58%
slogo.PNG4.70KB3.14KB▼ 33.03%
logo.png11.33KB3.81KB▼ 66.36%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%