10% wp-missing-functions

Code Review | WP Missing Functions Plugin

WordPress plugin WP Missing Functions Plugin scored10%from 54 tests.

About plugin

  • Plugin page: wp-missing-functions
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.4
  • WordPress version: 6.3.1
  • First release: Jul 26, 2015
  • Latest release: Aug 12, 2015
  • Number of updates: 12
  • Update frequency: every 1.8 days
  • Top authors: ramielian (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,699 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-missing-functions/asset/required/functions/tab3-fun.php+175
    Undefined index: wmf_feeds_to_header

Server metrics [RAM: ▼1.96MB] [CPU: ▼47.05ms] Passed 4 tests

An overview of server-side resources used by WP Missing Functions Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.43 ▼31.23
Dashboard /wp-admin2.05 ▼1.256.51 ▼38.23
Posts /wp-admin/edit.php2.05 ▼1.304.83 ▼38.47
Add New Post /wp-admin/post-new.php2.05 ▼3.835.61 ▼80.26
Media Library /wp-admin/upload.php2.05 ▼1.185.62 ▼27.78

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 10 new options
New WordPress options
sef_options
wop_options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
wmf_options
cop_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Missing Functions Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.21 ▼1.401.67 ▼0.1038.50 ▼2.40
Dashboard /wp-admin2,222 ▲315.78 ▲0.6999.77 ▼2.3138.25 ▼6.87
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0736.41 ▲0.0133.06 ▼0.28
Add New Post /wp-admin/post-new.php1,527 ▲817.58 ▼5.44660.78 ▼9.7754.74 ▲0.82
Media Library /wp-admin/upload.php1,404 ▲164.37 ▲0.2197.29 ▼8.7439.99 ▼4.61

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/wp-missing-functions/asset/required/functions/tab3-fun.php+175
    Undefined index: wmf_feeds_to_header
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • cop_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • wop_options
    • wmf_options
    • db_upgraded
    • sef_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-missing-functions/asset/js/selectors.php
    • > /wp-content/plugins/wp-missing-functions/asset/required/rsa.php
  • 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-missing-functions/asset/required/tab2.php:6
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-missing-functions/asset/required/functions/tab2-fun.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-missing-functions/asset/required/functions/tab4-fun.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-content/plugins/wp-missing-functions/asset/js/selectors.php): failed to open stream: No such file or directory in wp-content/plugins/wp-missing-functions/asset/required/tab1.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-missing-functions/asset/required/functions/tab2-fun.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-missing-functions/asset/required/tab3.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-missing-functions/asset/required/tab4.php:6
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-missing-functions/asset/required/functions.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-missing-functions/asset/required/functions/tab1-fun.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-missing-functions/asset/required/functions/tab4-fun.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (WP MIssing Functions Plugin settings), #2 (WP MIssing Functions Plugin settings 2), #3 (WP MIssing Functions Plugin settings 3)
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-missing-functions/wp-missing-functions.php 92% from 13 tests

The entry point to "WP Missing Functions Plugin" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin1,279 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP16266781,152
CSS1220127

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/images/wpmf-pro.png3.90KB3.96KB0.00%