10% acmesocial

Code Review | Universal Social Reputation

WordPress plugin Universal Social Reputation scored 10% from 54 tests.

About plugin

  • Plugin page: acmesocial
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.9.2
  • First release: Feb 2, 2017
  • Latest release: Feb 4, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: olorapino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 476 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.00 ▼1.06
Dashboard /wp-admin3.41 ▲0.0033.87 ▲1.01
Posts /wp-admin/edit.php3.64 ▲0.0036.20 ▼1.02
Add New Post /wp-admin/post-new.php6.88 ▼0.0994.78 ▼1,162.26
Media Library /wp-admin/upload.php3.30 ▲0.0025.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.01 ▲0.026.03 ▼0.412.47 ▼0.08
Dashboard /wp-admin2,888 ▲276.10 ▼0.14117.03 ▼18.37154.56 ▼5.34
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0063.39 ▼3.98136.63 ▼8.01
Add New Post /wp-admin/post-new.php1,752 ▼1021.35 ▼0.76435.69 ▼16.59162.87 ▲6.16
Media Library /wp-admin/upload.php1,698 ▼05.45 ▼0.06136.33 ▼12.06192.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

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 === )
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP16436204
PO File2264266
JavaScript15020

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 code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/up-arrow-circle-lo.png23.43KB0.22KB▼ 99.04%
images/up-arrow-circle-lo - copia.png23.43KB0.30KB▼ 98.73%
images/up-arrow-circle-hi - copia.png22.97KB0.30KB▼ 98.71%
images/up-arrow-circle-hi.png22.97KB0.23KB▼ 99.01%