84% wp-api-customizer

Code Review | WP API Customizer

WordPress plugin WP API Customizer scored84%from 54 tests.

About plugin

  • Plugin page: wp-api-customizer
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Jan 17, 2015
  • Number of updates: 8
  • Update frequency: every 15.1 days
  • Top authors: ixkaito (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,982 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.10ms] Passed 4 tests

Analyzing server-side resources used by WP API Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0333.78 ▼4.68
Dashboard /wp-admin3.34 ▲0.0343.91 ▼7.41
Posts /wp-admin/edit.php3.39 ▲0.0345.30 ▼0.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.52 ▼7.46
Media Library /wp-admin/upload.php3.26 ▲0.0335.80 ▲2.83

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP API Customizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.24 ▼1.071.78 ▲0.0139.11 ▼4.94
Dashboard /wp-admin2,225 ▲375.87 ▼0.01111.24 ▼0.7442.59 ▼0.58
Posts /wp-admin/edit.php2,105 ▲132.06 ▲0.0633.48 ▼9.5432.09 ▼2.18
Add New Post /wp-admin/post-new.php1,546 ▲1323.28 ▲0.04666.46 ▲11.2856.54 ▲0.28
Media Library /wp-admin/upload.php1,407 ▲194.21 ▲0.0397.89 ▼2.5640.75 ▼2.82

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-api-customizer/wp-api-customizer.php:14

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: rest api, custom field, api, rest, json

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

The entry point to "WP API Customizer" version 0.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin242 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22111135
JavaScript281143
CSS11529
Sass17027
Ruby1138

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin