Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.09ms] Passed 4 tests
Analyzing server-side resources used by REST API Docs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.27 ▼1.95 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.27 ▼4.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.86 ▼5.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.72 ▼16.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.86 ▲0.79 |
REST API /wp-admin/tools.php?page=rest-api-doc | 3.20 | 30.78 |
Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for REST API Docs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.58 ▲0.16 | 2.00 ▲0.56 | 45.25 ▲5.64 |
Dashboard /wp-admin | 2,193 ▲16 | 5.63 ▲0.05 | 89.57 ▲3.10 | 37.59 ▼4.58 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▼0.03 | 38.96 ▲1.77 | 34.58 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.34 ▲0.10 | 653.57 ▼0.73 | 67.95 ▲1.82 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.13 ▼0.09 | 111.22 ▲7.52 | 47.67 ▲0.57 |
REST API /wp-admin/tools.php?page=rest-api-doc | 832 | 2.44 | 43.54 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
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 issues were found
Optimizations
Plugin configuration 93% 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
1 plugin tags: rest
rest-api-docs/rest-api-doc.php 85% from 13 tests
Analyzing the main PHP file in "REST API Docs" version 0.2.0
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("rest-api-docs.php" instead of "rest-api-doc.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected662 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Vuejs Component | 3 | 23 | 3 | 192 |
Sass | 3 | 20 | 0 | 163 |
JSON | 2 | 0 | 0 | 75 |
JavaScript | 4 | 8 | 17 | 67 |
PHP | 2 | 10 | 45 | 60 |
PO File | 1 | 19 | 19 | 53 |
Markdown | 1 | 21 | 0 | 40 |
XML | 1 | 4 | 2 | 11 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected