84% wishfinity

Code Review | Wishfinity

WordPress plugin Wishfinity scored 84% from 54 tests.

About plugin

  • Plugin page: wishfinity
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Mar 21, 2020
  • Latest release: Mar 16, 2021
  • Number of updates: 18
  • Update frequency: every 20.0 days
  • Top authors: eggtooth (88.89%)ivanweb (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 492 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.18ms] Passed 4 tests

This is a short check of server-side resources used by Wishfinity
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.12 ▼9.87
Dashboard /wp-admin3.31 ▲0.0144.65 ▼1.57
Posts /wp-admin/edit.php3.36 ▲0.0047.41 ▼7.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.29 ▼13.92
Media Library /wp-admin/upload.php3.23 ▲0.0040.83 ▲6.26

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wishfinity
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.22 ▼1.221.58 ▼0.4938.68 ▼2.61
Dashboard /wp-admin2,221 ▲335.82 ▲0.91108.42 ▼1.8775.80 ▲31.96
Posts /wp-admin/edit.php2,104 ▲152.01 ▲0.0239.43 ▼0.8433.80 ▼2.57
Add New Post /wp-admin/post-new.php1,680 ▲13821.94 ▲3.60772.07 ▲136.4652.67 ▼8.38
Media Library /wp-admin/upload.php1,403 ▲124.16 ▼0.06111.83 ▲8.6344.57 ▲3.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wishfinity/templates/settings-tpl.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: retargeting, remarketing, abandoned cart, wishlist, gifting

wishfinity/wishfinity.php 85% from 13 tests

The entry point to "Wishfinity" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Domain Path: The domain path folder does not exist ("/lang")

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
Everything looks great! No dangerous files found in this plugin987 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP814048566
SVG505302
JavaScript1415119

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.33
▷ Minimum class complexity3.00
▷ Maximum class complexity26.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods623.08%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/wf-icon-new-16x16.png2.38KB0.67KB▼ 71.88%