Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/secure-xml-rpc/includes/XMLRPCS_Profile.php+278
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼53.64ms] Passed 4 tests
A check of server-side resources used by Secure XML-RPC
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 4.33 ▼32.82 |
Dashboard /wp-admin | 2.13 ▼1.18 | 6.00 ▼42.31 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.84 ▼39.94 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 5.52 ▼99.48 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 5.98 ▼27.68 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Secure XML-RPC
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.04 | 1.61 ▼0.21 | 39.76 ▼3.88 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.94 | 94.70 ▼17.11 | 41.67 ▼2.42 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▲0.02 | 40.63 ▲4.89 | 36.65 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.54 ▲5.67 | 663.41 ▲53.91 | 53.26 ▼0.58 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.17 ▼0.02 | 93.56 ▼9.70 | 40.36 ▼4.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/secure-xml-rpc/includes/XMLRPCS_Profile.php+278
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'wp_xmlrpc_server' not found in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php:14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 3
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 3
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-wp-xmlrpc-server.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/secure-xml-rpc/secure_xml_rpc.php:40
- > PHP Warning
include_once(ABSPATHWPINC/class-IXR.php): failed to open stream: No such file or directory in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 3
- > PHP Warning
include_once(ABSPATHwp-admin/includes/admin.php): failed to open stream: No such file or directory in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 2
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 4
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-IXR.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/secure-xml-rpc/includes/class-secure-xmlrpc-server.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: oauth, xmlrpc, security, authentication
secure-xml-rpc/secure_xml_rpc.php 85% from 13 tests
This is the main PHP file of "Secure XML-RPC" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("secure-xml-rpc.php" instead of "secure_xml_rpc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin695 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 203 | 615 | 621 |
JavaScript | 3 | 18 | 43 | 59 |
CSS | 2 | 5 | 10 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 78.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 9 | 11.54% |
▷ Public methods | 77 | 98.72% |
▷ Protected methods | 1 | 1.28% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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 images were found in this plugin