68% wp-verify-api

Code Review | WP Verify API

WordPress plugin WP Verify API scored 68% from 54 tests.

About plugin

  • Plugin page: wp-verify-api
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-5.4.1
  • WordPress version: 5.8.1
  • First release: May 23, 2020
  • Latest release: May 23, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: anorouzi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 278 total downloads

Benchmarks

Plugin footprint 65% 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.64MB] [CPU: ▼162.09ms] Passed 4 tests

This is a short check of server-side resources used by WP Verify API
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.62 ▲10.24
Dashboard /wp-admin3.07 ▲0.0150.91 ▲5.42
Posts /wp-admin/edit.php3.12 ▲0.0143.76 ▼5.03
Add New Post /wp-admin/post-new.php2.85 ▼2.5817.36 ▼647.96
Media Library /wp-admin/upload.php3.01 ▲0.0133.17 ▼0.78
WP Verify API /wp-admin/options-general.php?page=wp_verify_api2.9626.30

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 3 new options
New tables
wp_wp_verify_api
New WordPress options
wp_verify_api_email_text
wp_verify_api_code_expire_time
wp_verify_api_code_digits

Browser metrics Passed 4 tests

An overview of browser requirements for WP Verify API
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.01 ▲0.458.93 ▲0.4248.84 ▲0.82
Dashboard /wp-admin2,978 ▲475.90 ▼0.01131.96 ▼13.88116.94 ▲3.78
Posts /wp-admin/edit.php2,744 ▲82.82 ▲0.0060.86 ▼3.9583.49 ▼7.79
Add New Post /wp-admin/post-new.php1,675 ▼818.84 ▲0.29380.34 ▼5.33103.03 ▼5.43
Media Library /wp-admin/upload.php1,815 ▲85.03 ▲0.00156.38 ▼0.42114.40 ▼16.06
WP Verify API /wp-admin/options-general.php?page=wp_verify_api1,0992.1858.1472.16

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
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wp_verify_api
  • Zombie WordPress options were found after uninstall: 3 options
    • wp_verify_api_code_expire_time
    • wp_verify_api_code_digits
    • wp_verify_api_email_text

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_verify_api
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp_verify_api
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-verify-api/admin/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-verify-api/inc/generate-code.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-verify-api/api/api.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-verify-api/inc/send-email.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that require attention: You can look at the official readme.txt

wp-verify-api/wp-verify-api.php 92% from 13 tests

The main file in "WP Verify API" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/wp-verify-api")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin184 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP62418184

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected