83% wcfcode-fomo

Code Review | WCF FOMO Web Push Notifications Plugin For WordPress

WordPress plugin WCF FOMO Web Push Notifications Plugin For WordPress scored83%from 54 tests.

About plugin

  • Plugin page: wcfcode-fomo
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 25, 2022
  • Latest release: May 26, 2022
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: wecode123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.64ms] Passed 4 tests

Analyzing server-side resources used by WCF FOMO Web Push Notifications Plugin For WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.11558.40 ▲521.47
Dashboard /wp-admin3.38 ▲0.0341.74 ▼17.07
Posts /wp-admin/edit.php3.41 ▲0.0642.69 ▼4.51
Add New Post /wp-admin/post-new.php6.09 ▲0.2074.62 ▼17.93
Media Library /wp-admin/upload.php3.33 ▲0.1135.46 ▼3.03
Campaigns /wp-admin/admin.php?page=campaigns3.2730.03
WCF FOMO /wp-admin/admin.php?page=wcfcode-fomo3.2931.81

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
wcf_api_key
widget_recent-comments
can_compress_scripts
widget_recent-posts
wcf_userid
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WCF FOMO Web Push Notifications Plugin For WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.20 ▼1.365.38 ▲3.7237.59 ▼2.25
Dashboard /wp-admin2,299 ▲1215.74 ▲0.1283.65 ▼15.0630.76 ▼12.66
Posts /wp-admin/edit.php2,204 ▲1042.19 ▲0.1935.82 ▲0.7828.67 ▼5.59
Add New Post /wp-admin/post-new.php1,706 ▲18022.79 ▲0.02660.90 ▼7.1049.89 ▼1.83
Media Library /wp-admin/upload.php1,576 ▲1734.36 ▲0.13102.24 ▼2.7040.00 ▼10.68
Campaigns /wp-admin/admin.php?page=campaigns8881.9424.8319.64
WCF FOMO /wp-admin/admin.php?page=wcfcode-fomo9701.9124.6925.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • wcf_userid
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • wcf_api_key
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 8× 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/wcfcode-fomo/function.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wcfcode-fomo/wcf-fomo.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/wcfcode-fomo/switch_account.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'wcf_fomo_functions' not found in wp-content/plugins/wcfcode-fomo/wcfindex.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wcfcode-fomo/wcf_render_account_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcfcode-fomo/function.php:116
    • > PHP Fatal error
      Uncaught Error: Class 'wcf_fomo_functions' not found in wp-content/plugins/wcfcode-fomo/wcfindex.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcfcode-fomo/wcfcode_admin.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("For Wcf Push Notifications")
The official readme.txt is a good inspiration

wcfcode-fomo/wcf-fomo.php 77% from 13 tests

Analyzing the main PHP file in "WCF FOMO Web Push Notifications Plugin For WordPress" version 1.0.1
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 253 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wcfcode-fomo.php" instead of "wcf-fomo.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected47,329 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
CSS188,13414235,119
JavaScript73,5051,61411,762
PHP84613447
SVG1001

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.18
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/fonts/wcf_fomo_icon.png27.60KB8.33KB▼ 69.81%