Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-source-control/source_control_path.php+45
Function create_function() is deprecated
Server metrics [RAM: ▼0.43MB] [CPU: ▼16.13ms] Passed 4 tests
Server-side resources used by WP Source Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 43.86 ▲3.74 |
Dashboard /wp-admin | 3.57 ▲0.22 | 48.08 ▼13.67 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.56 ▲2.56 |
Add New Post /wp-admin/post-new.php | 3.41 ▼2.47 | 38.27 ▼53.99 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 35.45 ▲0.58 |
WP Source Control /wp-admin/admin.php?page=wp-source-control/source_control_list.php | 3.49 | 28.86 |
Backup / Restore /wp-admin/admin.php?page=wp-source-control/source_control_backup.php | 3.55 | 32.57 |
Search Commit /wp-admin/admin.php?page=wp-source-control/source_control_search.php | 3.51 | 31.60 |
Clean Up /wp-admin/admin.php?page=wp-source-control/source_control_clean_up.php | 3.47 | 33.25 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- The plugin illegally modified 2 files (9.29KB) outside of "wp-content/plugins/wp-source-control/" and "wp-content/uploads/"
- (new file) wp-content/downloadfiles/download.php
- (new file) wp-content/downloadfiles/source_control_zip.php
Filesystem: 26 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_version_controls |
wp_version_control_posts |
wp_version_control_templates |
New WordPress options |
---|
widget_recent-posts |
source_control_version |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Source Control
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.19 ▼1.49 | 1.67 ▼0.17 | 44.74 ▲1.92 |
Dashboard /wp-admin | 2,237 ▲49 | 4.83 ▼1.04 | 101.90 ▼14.59 | 40.97 ▼8.82 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.01 ▼0.04 | 33.19 ▼3.74 | 33.28 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 22.78 ▼0.44 | 601.27 ▼73.40 | 54.21 ▲2.06 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.20 ▼0.00 | 97.03 ▼1.48 | 41.45 ▼5.76 |
WP Source Control /wp-admin/admin.php?page=wp-source-control/source_control_list.php | 4,610 | 2.06 | 37.21 | 79.74 |
Backup / Restore /wp-admin/admin.php?page=wp-source-control/source_control_backup.php | 734 | 1.14 | 8.25 | 32.21 |
Search Commit /wp-admin/admin.php?page=wp-source-control/source_control_search.php | 905 | 2.00 | 30.85 | 27.36 |
Clean Up /wp-admin/admin.php?page=wp-source-control/source_control_clean_up.php | 688 | 1.53 | 6.37 | 15.55 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_version_control_templates
- wp_version_controls
- wp_version_control_posts
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- source_control_version
- widget_theysaidso_widget
- recovery_mode_email_last_sent
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Notice in wp-content/plugins/wp-source-control/source_control_search.php+231
Undefined index: submit
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Notice in wp-content/plugins/wp-source-control/source_control_search.php+72
Undefined index: vc_action
- 1063 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_backup.php
- > Deprecated in wp-content/plugins/wp-source-control/source_control_path.php+45
Function create_function() is deprecated
- 117 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_list.php
- > Notice in wp-content/plugins/wp-source-control/wp-content_source_control.php+289
Undefined variable: content
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_list.php
- > Notice in wp-content/plugins/wp-source-control/source_control_list.php+164
Undefined index: job_no
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_list.php
- > Notice in wp-content/plugins/wp-source-control/source_control_list.php+173
Undefined index: description
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Deprecated in wp-content/plugins/wp-source-control/source_control_search.php+240
Non-static method SCTomM8::add_social_share_links() should not be called statically
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_backup.php
- > Notice in wp-content/plugins/wp-source-control/source_control_backup.php+23
Undefined index: restore
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_backup.php
- > Notice in wp-content/plugins/wp-source-control/source_control_backup.php+31
Undefined index: delete
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_backup.php
- > Error in wp-content/plugins/wp-source-control/source_control_backup.php+201
Uncaught Error: Call to undefined function split() in wp-content/plugins/wp-source-control/source_control_backup.php:201
Stack trace:
#0 wp-admin/admin.php(293): include()
#1 {main}
thrown- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Notice in wp-content/plugins/wp-source-control/source_control_search.php+127
Undefined index: search_job_no
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Notice in wp-content/plugins/wp-source-control/source_control_search.php+135
Undefined index: search_start_date
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Notice in wp-content/plugins/wp-source-control/source_control_search.php+143
Undefined index: search_end_date
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_clean_up.php
- > Notice in wp-content/plugins/wp-source-control/source_control_clean_up.php+19
Trying to get property 'id' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-source-control/source_control_template_log.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-source-control/source_control_list.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-source-control/source_control_clean_up.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-source-control/source_control_search.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-source-control/wp-content_source_control.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-source-control/source_control_backup.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-source-control/source_control_search.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-source-control/source_control_list.php on line 23
- > PHP Notice
Undefined index: path in wp-content/plugins/wp-source-control/downloadfiles/download.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_list.php
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'top')" "TypeError: Cannot read properties of undefined (reading 'top')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-source-control/admin_source_control.js?ver=6.3.1:9:43)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_list.php
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'top')
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Network (severe)
wp-content/plugins/wp-source-control/css/jquery-ui.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wp-source-control/source_control_search.php
- > Network (severe)
wp-content/plugins/wp-source-control/css/images/calendar.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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
8 plugin tags: source, pages, templates, posts, control...
wp-source-control/wp-content_source_control.php 92% from 13 tests
The main PHP script in "WP Source Control" version 3.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-source-control.php" instead of "wp-content_source_control.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
No dangerous file extensions were detected2,276 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 409 | 310 | 2,266 |
JavaScript | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 72.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 52 | |
▷ Static methods | 4 | 7.69% |
▷ Public methods | 51 | 98.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.92% |
Functions | 26 | |
▷ Named functions | 26 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rate-me.png | 2.62KB | 1.53KB | ▼ 41.67% |
images/edit.png | 1.69KB | 0.59KB | ▼ 65.22% |
images/trash.png | 1.52KB | 0.70KB | ▼ 53.85% |