Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.15ms] Passed 4 tests
This is a short check of server-side resources used by WP-API JSON Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.88 ▲0.41 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.28 ▼5.99 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.01 ▼1.86 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 83.01 ▼10.75 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.76 ▼1.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP-API JSON Feed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.28 ▼0.45 | 1.69 ▲0.06 | 39.51 ▼3.97 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.10 | 80.52 ▼14.39 | 37.27 ▼4.66 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.02 | 34.76 ▲0.03 | 33.07 ▼4.51 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 18.32 ▲0.09 | 613.93 ▼40.54 | 76.57 ▲16.68 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.28 ▲0.04 | 93.96 ▼12.66 | 42.28 ▼6.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: feed, rest api, json feed
wp-api-json-feed/wp-api-json-feed.php Passed 13 tests
"WP-API JSON Feed" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Implements JSON feeds following the official JSON feed specification by using the WordPress REST API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin655 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 122 | 521 | 655 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 1 | 2.56% |
▷ Public methods | 18 | 46.15% |
▷ Protected methods | 20 | 51.28% |
▷ Private methods | 1 | 2.56% |
Functions | 2 | |
▷ Named functions | 2 | 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
There were not PNG files found in your plugin