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.26MB] [CPU: ▼3.16ms] Passed 4 tests
This is a short check of server-side resources used by WordPress REST API - OAuth 1.0a Server
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.33 ▼3.17 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.10 ▼0.91 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 49.21 ▲3.17 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 81.57 ▼11.03 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.93 ▲2.46 |
Applications /wp-admin/users.php?page=rest-oauth1-apps | 3.55 | 36.08 |
Server storage [IO: ▲0.29MB] [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: 132 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress REST API - OAuth 1.0a Server
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.25 ▼0.51 | 1.57 ▼0.21 | 37.24 ▼6.55 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.04 | 90.44 ▼17.29 | 40.32 ▼7.20 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.06 | 39.47 ▲0.61 | 36.28 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.30 ▲0.09 | 661.95 ▼15.81 | 43.78 ▼11.81 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▼0.12 | 99.41 ▲2.13 | 42.57 ▲0.66 |
Applications /wp-admin/users.php?page=rest-oauth1-apps | 921 | 2.04 | 25.44 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 107× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rest-api-oauth1/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: api, json, rest-api, rest
rest-api-oauth1/oauth-server.php 92% from 13 tests
"WordPress REST API - OAuth 1.0a Server" version 0.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rest-api-oauth1.php" instead of "oauth-server.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
Good job! No executable or dangerous file extensions detected4,516 lines of code in 124 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 863 | 1,556 | 4,356 |
JSON | 1 | 0 | 0 | 160 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 113 | |
▷ Abstract classes | 2 | 1.77% |
▷ Concrete classes | 111 | 98.23% |
▷ Final classes | 0 | 0.00% |
Methods | 198 | |
▷ Static methods | 40 | 20.20% |
▷ Public methods | 139 | 70.20% |
▷ Protected methods | 49 | 24.75% |
▷ Private methods | 10 | 5.05% |
Functions | 21 | |
▷ Named functions | 14 | 66.67% |
▷ Anonymous functions | 7 | 33.33% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 21.82KB | 8.54KB | ▼ 60.88% |
assets/icon-256x256.png | 20.37KB | 6.80KB | ▼ 66.61% |
assets/icon-128x128.png | 9.88KB | 3.72KB | ▼ 62.36% |
assets/banner-1544x500.png | 23.26KB | 8.48KB | ▼ 63.53% |