10% acmesocial

Code Review | Universal Social Reputation

WordPress plugin Universal Social Reputation scored10%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: 6.3.1
  • 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 /608 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.02 ▼2.37
Dashboard /wp-admin3.31 ▼0.0449.58 ▼15.53
Posts /wp-admin/edit.php3.36 ▲0.0053.16 ▲1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.29 ▼10.69
Media Library /wp-admin/upload.php3.23 ▲0.0040.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.29 ▼0.102.04 ▲0.3441.98 ▼0.88
Dashboard /wp-admin2,198 ▲245.66 ▼0.0286.77 ▼2.8540.83 ▼5.82
Posts /wp-admin/edit.php2,103 ▲32.02 ▼0.0239.79 ▼0.3934.92 ▲0.61
Add New Post /wp-admin/post-new.php1,545 ▲1423.22 ▲0.19686.42 ▲4.5160.04 ▲8.41
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0795.45 ▼10.8148.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

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 === )
The official readme.txt might help

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

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 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

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
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%