Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Compile error in wp-content/plugins/acmesocial/unisocrep.php+50
Cannot use $this as parameter
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.69ms] Passed 4 tests
This is a short check of server-side resources used by Universal Social Reputation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.02 ▼2.37 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.58 ▼15.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.16 ▲1.85 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.29 ▼10.69 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.54 ▲4.09 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Universal Social Reputation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.29 ▼0.10 | 2.04 ▲0.34 | 41.98 ▼0.88 |
Dashboard /wp-admin | 2,198 ▲24 | 5.66 ▼0.02 | 86.77 ▼2.85 | 40.83 ▼5.82 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▼0.02 | 39.79 ▼0.39 | 34.92 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.22 ▲0.19 | 686.42 ▲4.51 | 60.04 ▲8.41 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.07 | 95.45 ▼10.81 | 48.82 ▲0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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 | 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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Cannot use $this as parameter in wp-content/plugins/acmesocial/unisocrep.php on line 50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== acmesocial ===
)
acmesocial/unisocrep.php 77% from 13 tests
"Universal Social Reputation" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("acmesocial.php" instead of "unisocrep.php")
- Description: The description should be shorter than 140 characters (currently 442 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin290 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 64 | 36 | 204 |
PO File | 2 | 26 | 42 | 66 |
JavaScript | 1 | 5 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/up-arrow-circle-lo.png | 23.43KB | 0.22KB | ▼ 99.04% |
images/up-arrow-circle-lo - copia.png | 23.43KB | 0.30KB | ▼ 98.73% |
images/up-arrow-circle-hi - copia.png | 22.97KB | 0.30KB | ▼ 98.71% |
images/up-arrow-circle-hi.png | 22.97KB | 0.23KB | ▼ 99.01% |