Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.23ms] Passed 4 tests
This is a short check of server-side resources used by API Endpoints
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 38.97 ▼1.37 |
Dashboard /wp-admin | 3.41 ▲0.10 | 65.57 ▲10.13 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 50.49 ▼0.66 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 91.20 ▼2.36 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.85 ▼4.51 |
API Endpoints /wp-admin/options-general.php?page=twig_anything_api_endpoint_settings_page | 3.30 | 34.88 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
twig_anything_api_endpoint_settings |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for API Endpoints
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▲0.05 | 1.64 ▼0.12 | 43.44 ▲2.12 |
Dashboard /wp-admin | 2,199 ▲27 | 5.57 ▼0.04 | 92.09 ▼14.90 | 41.79 ▼3.62 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 38.69 ▼4.94 | 34.02 ▼7.30 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.36 ▲0.26 | 679.41 ▲16.97 | 48.91 ▼8.46 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.18 ▲0.07 | 95.69 ▼8.13 | 47.14 ▲1.18 |
API Endpoints /wp-admin/options-general.php?page=twig_anything_api_endpoint_settings_page | 769 | 2.03 | 27.24 | 27.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- twig_anything_api_endpoint_settings
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/twig-anything-api-endpoints/twig-anything-api-endpoints.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 48 tag instead of maximum 10
twig-anything-api-endpoints/twig-anything-api-endpoints.php 92% from 13 tests
The main PHP file in "API Endpoints" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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,429 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 14 | 6 | 575 |
PHP | 2 | 92 | 122 | 450 |
JSX | 1 | 23 | 5 | 404 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 11 | 45.83% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin