83% wp-rest-api-all-terms

Code Review | WP REST API - All Terms

WordPress plugin WP REST API - All Terms scored 83% from 54 tests.

About plugin

  • Plugin page: wp-rest-api-all-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Mar 1, 2016
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: MAGIKru (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 3,101 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.82MB] [CPU: ▼28.54ms] Passed 4 tests

Server-side resources used by WP REST API - All Terms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0342.24 ▼1.91
Dashboard /wp-admin3.31 ▲0.0047.24 ▼16.39
Posts /wp-admin/edit.php3.36 ▼0.4943.17 ▼16.18
Add New Post /wp-admin/post-new.php3.12 ▼2.7737.56 ▼74.46
Media Library /wp-admin/upload.php3.23 ▲0.0038.10 ▼7.12

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP REST API - All Terms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.014.27 ▲1.8041.96 ▼9.34
Dashboard /wp-admin2,206 ▲185.83 ▲0.95107.88 ▼9.4048.89 ▲1.54
Posts /wp-admin/edit.php2,086 ▼62.04 ▼0.0037.23 ▲0.4233.82 ▼0.07
Add New Post /wp-admin/post-new.php1,519 ▼2523.28 ▲0.23678.40 ▼15.5056.56 ▼0.13
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.08131.84 ▼16.4954.37 ▼22.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rest-api-all-terms/wp_api_all_terms.php:46

User-side errors Passed 1 test

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

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:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-rest-api-all-terms === )
You can take inspiration from this readme.txt

wp-rest-api-all-terms/wp_api_all_terms.php 92% from 13 tests

The main PHP file in "WP REST API - All Terms" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-rest-api-all-terms.php" instead of "wp_api_all_terms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15934

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin