94% genesis-rest-api-integration

Code Review | Genesis REST API Integration

WordPress plugin Genesis REST API Integration scored 94% from 54 tests.

About plugin

  • Plugin page: genesis-rest-api-...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 5.8.1
  • First release: Jul 26, 2015
  • Latest release: Dec 7, 2015
  • Number of updates: 7
  • Update frequency: every 19.2 days
  • Top authors: Braad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,166 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼144.13ms] Passed 4 tests

This is a short check of server-side resources used by Genesis REST API Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0024.45 ▲2.91
Dashboard /wp-admin3.06 ▼0.0030.40 ▼7.14
Posts /wp-admin/edit.php3.11 ▲0.0032.77 ▲1.44
Add New Post /wp-admin/post-new.php5.43 ▼0.0174.75 ▼570.58
Media Library /wp-admin/upload.php3.01 ▲0.0023.48 ▼0.24

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Genesis REST API Integration: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.65 ▲0.034.97 ▼0.3172.14 ▼5.07
Dashboard /wp-admin2,929 ▲336.13 ▼0.00130.50 ▼2.56163.68 ▼12.06
Posts /wp-admin/edit.php2,740 ▼03.24 ▼0.0171.97 ▲7.83154.73 ▲17.57
Add New Post /wp-admin/post-new.php3,704 ▼4818.11 ▲0.73437.55 ▼26.79165.22 ▼1.45
Media Library /wp-admin/upload.php1,752 ▼05.53 ▲0.06145.35 ▼3.81188.86 ▼8.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× 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/genesis-rest-api-integration/genesis-rest-api-integration.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: api, rest, response, integration, post...

genesis-rest-api-integration/genesis-rest-api-integration.php 92% from 13 tests

Analyzing the main PHP file in "Genesis REST API Integration" version 1.1.0
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin