72% wp-whos-amung

Code Review | Whos Amung Stats

WordPress plugin Whos Amung Stats scored72%from 54 tests.

About plugin

  • Plugin page: wp-whos-amung
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2011
  • Latest release: Feb 22, 2013
  • Number of updates: 26
  • Update frequency: every 22.9 days
  • Top authors: valtlfelipe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,892 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▼19.64ms] Passed 4 tests

Server-side resources used by Whos Amung Stats
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0631.81 ▼12.38
Dashboard /wp-admin3.19 ▼0.1531.52 ▼23.75
Posts /wp-admin/edit.php3.26 ▼0.1033.97 ▼8.63
Add New Post /wp-admin/post-new.php5.44 ▼0.4467.81 ▼33.80
Media Library /wp-admin/upload.php3.20 ▼0.0333.44 ▼1.72
Whos Amung /wp-admin/options-general.php?page=whosamung-config3.1728.49

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Whos Amung Stats
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,446 ▲66013.93 ▼0.6812.78 ▲10.8144.78 ▲6.55
Dashboard /wp-admin2,340 ▲1595.74 ▼0.0081.20 ▼15.6580.45 ▲37.93
Posts /wp-admin/edit.php2,235 ▲1352.30 ▲0.3231.44 ▼7.4331.33 ▼3.24
Add New Post /wp-admin/post-new.php1,825 ▲29722.62 ▼0.60737.29 ▲108.4032.67 ▼9.97
Media Library /wp-admin/upload.php1,538 ▲1354.49 ▲0.3197.92 ▼1.4468.11 ▲26.45
Whos Amung /wp-admin/options-general.php?page=whosamung-config1,0272.0924.9226.00

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=whosamung-config
    • > Notice in wp-content/plugins/wp-whos-amung/wp-whos-amung.php+100
    Undefined variable: content
    • > GET request to /wp-admin/options-general.php?page=whosamung-config
    • > Notice in wp-content/plugins/wp-whos-amung/wp-whos-amung.php+197
    Undefined index: updated

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-whos-amung/wp-whos-amung.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=whosamung-config
    • > Network (severe)
    wp-admin/index.php?page=whosamung-stats - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-whos-amung === )
  • Screenshots: These screenshots do not have images: #1 (Configurations.), #2 (Admin Bar.)
The official readme.txt is a good inspiration

wp-whos-amung/wp-whos-amung.php Passed 13 tests

The main file in "Whos Amung Stats" v. 0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Show statistics for you Whos Amung ID.

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
Good job! No executable or dangerous file extensions detected298 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11032186
PO File24044112

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png6.03KB4.81KB▼ 20.28%
screenshot-2.png1.71KB1.46KB▼ 14.36%
favicon.png0.73KB0.94KB0.00%