Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.24ms] Passed 4 tests
Analyzing server-side resources used by ACF to REST API
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.27 ▼3.26 |
Dashboard /wp-admin | 3.34 ▲0.04 | 63.38 ▲16.26 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.13 ▲4.64 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.98 ▼3.65 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.11 ▲3.23 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
ACF to REST API: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.45 ▲0.30 | 1.80 ▲0.06 | 43.82 ▲0.71 |
Dashboard /wp-admin | 2,223 ▲38 | 4.85 ▼1.03 | 103.14 ▲1.45 | 42.47 ▲4.22 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▲0.03 | 36.88 ▼0.29 | 37.05 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.08 ▲4.61 | 669.02 ▲6.68 | 54.41 ▲0.99 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.24 ▲0.05 | 103.28 ▼0.78 | 43.69 ▲1.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: wp-rest-api, rest, json, wordpress, wp-api...
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
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,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
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
No PNG images were found in this plugin