Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-simple-web-services/wp-simple-web-services.php+174
Function create_function() is deprecated
Server metrics [RAM: ▼1.93MB] [CPU: ▼53.08ms] Passed 4 tests
Analyzing server-side resources used by WP Simple Web Services
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.40 | 5.12 ▼37.39 |
Dashboard /wp-admin | 2.07 ▼1.23 | 12.59 ▼36.54 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.83 ▼43.76 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.79 ▼94.61 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.59 ▼27.03 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Simple Web Services
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲61 | 13.26 ▼1.49 | 1.58 ▼0.65 | 37.61 ▼9.54 |
Dashboard /wp-admin | 2,224 ▲36 | 5.90 ▲1.01 | 106.04 ▼0.10 | 38.37 ▼7.24 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.01 ▼0.03 | 39.38 ▼1.27 | 33.36 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.60 ▲5.95 | 678.56 ▼18.26 | 55.73 ▼1.20 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.23 ▲0.02 | 97.26 ▼2.67 | 41.58 ▼1.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-simple-web-services/wp-simple-web-services.php+174
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-simple-web-services/wp-simple-web-services.php:29
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: rest, json, web service, webservice
wp-simple-web-services/wp-simple-web-services.php Passed 13 tests
"WP Simple Web Services" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
107 characters long description:
Simple WordPress Rest Web Services. Add JSON REST web services to your WordPress website with a few clicks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin429 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 191 | 220 | 386 |
JavaScript | 2 | 17 | 7 | 43 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 7 | 20.59% |
▷ Public methods | 22 | 64.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 35.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 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