Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.59ms] Passed 4 tests
Analyzing server-side resources used by WP PLC Connect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.78 ▲2.99 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.16 ▲0.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.37 ▲4.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.21 ▼16.68 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.14 ▲2.50 |
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: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP PLC Connect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.27 ▼1.16 | 4.62 ▲2.74 | 44.78 ▼2.86 |
Dashboard /wp-admin | 2,228 ▲45 | 4.93 ▼0.00 | 102.24 ▼19.79 | 42.88 ▲0.91 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.04 ▲0.02 | 34.81 ▼0.41 | 30.30 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,531 ▼3 | 23.08 ▼0.18 | 649.78 ▲57.71 | 67.33 ▲24.53 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.17 ▼0.10 | 95.45 ▼4.50 | 40.24 ▼2.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function OnePlace\\Connect\\Modules\\add_action() in wp-content/plugins/wp-plc-connect/includes/Modules/Settings.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-plc-connect/includes/templates/partials/general.php:12
- > PHP Warning
Use of undefined constant WPPLC_CONNECT_PLUGIN_MAIN_FILE - assumed 'WPPLC_CONNECT_PLUGIN_MAIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-plc-connect/includes/loader.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-plc-connect/includes/templates/settings.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: oneplace, api
wp-plc-connect/wp-plc-connect.php Passed 13 tests
The main PHP script in "WP PLC Connect" version 1.0.3 is automatically included on every request by WordPress
86 characters long description:
Connect your Wordpress installation to onePlace. Needed for other onePlace WP Plugins.
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
Everything looks great! No dangerous files found in this plugin1,046 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 37 | 24 | 553 |
PHP | 7 | 65 | 231 | 320 |
SVG | 1 | 16 | 0 | 133 |
JavaScript | 1 | 9 | 23 | 40 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 13 | |
▷ Static methods | 5 | 38.46% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon.png | 1.11KB | 0.58KB | ▼ 47.18% |