Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼140.90ms] Passed 4 tests
Analyzing server-side resources used by WP REST JMESPath
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 29.06 ▲8.05 |
Dashboard /wp-admin | 3.06 ▲0.01 | 40.80 ▼2.34 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 39.98 ▼5.12 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.86 ▼541.79 |
Media Library /wp-admin/upload.php | 3.00 ▼0.00 | 26.22 ▼14.33 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP REST JMESPath
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.27 ▲0.66 | 10.64 ▲1.62 | 46.56 ▼1.24 |
Dashboard /wp-admin | 2,970 ▲36 | 5.89 ▼0.05 | 145.14 ▲4.26 | 109.71 ▲3.49 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 62.32 ▼2.95 | 90.40 ▲4.99 |
Add New Post /wp-admin/post-new.php | 1,672 ▼0 | 18.80 ▼0.12 | 351.72 ▼17.58 | 101.40 ▼1.99 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▲0.01 | 148.82 ▼5.47 | 116.80 ▼6.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/bin/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/bin/jp.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/tests/SyntaxErrorExceptionTest.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-rest-jmespath/wp_rest_jmespath.php:125
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/tests/LexerTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/tests/TreeCompilerTest.php:9
- > PHP Warning
require(wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/bin/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/bin/perf.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/tests/ComplianceTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/tests/FnDispatcherTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/tests/EnvTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-rest-jmespath/vendor/mtdowling/jmespath.php/tests/UtilsTest.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Invalid URI ("")
- Tags: Please add at least on tag
wp-rest-jmespath/wp_rest_jmespath.php 85% from 13 tests
The main PHP file in "WP REST JMESPath" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Version: Plugin version not found
- Main file name: Name the main plugin file the same as the plugin slug ("wp-rest-jmespath.php" instead of "wp_rest_jmespath.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 detected8,740 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 24 | 8 | 0 | 5,666 |
PHP | 31 | 466 | 586 | 2,927 |
reStructuredText | 1 | 35 | 29 | 59 |
Markdown | 2 | 22 | 0 | 48 |
XML | 1 | 3 | 0 | 14 |
YAML | 1 | 4 | 0 | 13 |
make | 1 | 6 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 1 | 3.85% |
Methods | 199 | |
▷ Static methods | 19 | 9.55% |
▷ Public methods | 91 | 45.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 108 | 54.27% |
Functions | 32 | |
▷ Named functions | 9 | 28.12% |
▷ Anonymous functions | 23 | 71.88% |
Constants | 40 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 40 | 100.00% |
▷ Public constants | 40 | 100.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