Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Compile error in wp-content/plugins/acmesocial/unisocrep.php+50
Cannot use $this as parameter
Server metrics [RAM: ▼0.02MB] [CPU: ▼291.07ms] Passed 4 tests
A check of server-side resources used by Universal Social Reputation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.00 ▼1.06 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.87 ▲1.01 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.20 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.78 ▼1,162.26 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.57 ▲0.07 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Universal Social Reputation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 16.01 ▲0.02 | 6.03 ▼0.41 | 2.47 ▼0.08 |
Dashboard /wp-admin | 2,888 ▲27 | 6.10 ▼0.14 | 117.03 ▼18.37 | 154.56 ▼5.34 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.00 | 63.39 ▼3.98 | 136.63 ▼8.01 |
Add New Post /wp-admin/post-new.php | 1,752 ▼10 | 21.35 ▼0.76 | 435.69 ▼16.59 | 162.87 ▲6.16 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.45 ▼0.06 | 136.33 ▼12.06 | 192.73 ▲6.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== acmesocial ===
)
acmesocial/unisocrep.php 77% from 13 tests
This is the main PHP file of "Universal Social Reputation" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("acmesocial.php" instead of "unisocrep.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 442 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable 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 short review of cyclomatic complexity and code structure
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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% |