Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/socialcurrency/backend/find_easylist_matches.php+20
file_get_contents(http://wp.com/wp-content/plugins/socialcurrency-plugin/static/easylist.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.41ms] Passed 4 tests
This is a short check of server-side resources used by SocialCurrency
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.76 ▼5.82 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.30 ▲3.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.30 ▼6.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.00 ▼8.56 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 40.53 ▲3.84 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
scrr_easylist |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SocialCurrency
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 13.20 ▼1.21 | 1.93 ▼0.07 | 51.53 ▲8.76 |
Dashboard /wp-admin | 2,225 ▲37 | 5.03 ▼1.01 | 104.70 ▼6.57 | 39.63 ▼4.55 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.05 | 36.94 ▼5.35 | 33.44 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 17.86 ▼5.37 | 625.91 ▼29.61 | 48.20 ▼20.98 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.17 ▼0.05 | 95.43 ▼25.77 | 40.55 ▼7.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- scrr_easylist
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/socialcurrency-plugin/templates/screen-one.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/socialcurrency/scrr-plugin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/socialcurrency/socialcurrency-plugin/scrr-plugin.php:15
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/socialcurrency-plugin/templates/screen-one.php on line 12
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/templates/screen-one.php on line 26
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/templates/screen-one.php on line 26
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/templates/screen-one.php on line 12
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/templates/screen-one.php on line 12
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/socialcurrency-plugin/templates/screen-one.php on line 12
- > PHP Warning
Use of undefined constant SCRR__STATIC_FILES - assumed 'SCRR__STATIC_FILES' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialcurrency/socialcurrency-plugin/templates/screen-one.php on line 26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== socialcurrency ===
)
socialcurrency/scrr-plugin.php 92% from 13 tests
"SocialCurrency" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("socialcurrency.php" instead of "scrr-plugin.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
There were no executable files found in this plugin726 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 97 | 43 | 312 |
PHP | 8 | 52 | 36 | 254 |
CSS | 1 | 26 | 0 | 160 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
socialcurrency-plugin/assets/screenshot-2.png | 24.44KB | 6.80KB | ▼ 72.16% |
socialcurrency-plugin/static/img/twtr-icon.png | 14.87KB | 3.51KB | ▼ 76.37% |
static/img/fb-icon.png | 10.23KB | 1.76KB | ▼ 82.78% |
socialcurrency-plugin/static/img/fb-icon.png | 10.23KB | 1.76KB | ▼ 82.78% |
socialcurrency-plugin/assets/screenshot-1.png | 44.96KB | 12.88KB | ▼ 71.36% |