Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼147.80ms] Passed 4 tests
Analyzing server-side resources used by ACF to REST API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 24.53 ▲2.10 |
Dashboard /wp-admin | 3.07 ▲0.00 | 33.20 ▼2.92 |
Posts /wp-admin/edit.php | 3.16 ▲0.04 | 30.42 ▼3.70 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 77.24 ▼585.33 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 23.25 ▲0.76 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for ACF to REST API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,693 ▲41 | 15.57 ▼0.07 | 4.89 ▼0.68 | 75.97 ▼1.76 |
Dashboard /wp-admin | 2,956 ▲57 | 6.12 ▼0.04 | 114.83 ▼40.61 | 168.21 ▼19.28 |
Posts /wp-admin/edit.php | 2,772 ▲32 | 3.23 ▼0.13 | 63.97 ▼3.00 | 137.89 ▼9.26 |
Add New Post /wp-admin/post-new.php | 3,713 ▼30 | 18.61 ▼0.50 | 407.94 ▼20.86 | 155.95 ▼19.57 |
Media Library /wp-admin/upload.php | 1,779 ▲27 | 5.49 ▼0.02 | 144.80 ▼6.27 | 187.00 ▲1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: rest, json, api, wp-rest-api, acf...
acf-to-rest-api/class-acf-to-rest-api.php 92% from 13 tests
Analyzing the main PHP file in "ACF to REST API" version 3.3.3
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-to-rest-api.php" instead of "class-acf-to-rest-api.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,501 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 248 | 8 | 1,249 |
Markdown | 1 | 40 | 0 | 159 |
CSS | 1 | 9 | 0 | 58 |
JSON | 1 | 0 | 0 | 25 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 13.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 35 | 37.63% |
▷ Public methods | 73 | 78.49% |
▷ Protected methods | 11 | 11.83% |
▷ Private methods | 9 | 9.68% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
There were not PNG files found in your plugin