89% arkam-lite

Code Review | Social Media Counters for WordPress - Arkam Lite

WordPress plugin Social Media Counters for WordPress - Arkam Lite scored89%from 54 tests.

About plugin

  • Plugin page: arkam-lite
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.5
  • WordPress version: 6.3.1
  • First release: Apr 11, 2018
  • Latest release: Apr 19, 2018
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: asmi1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,756 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼3.56ms] Passed 4 tests

Server-side resources used by Social Media Counters for WordPress - Arkam Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3242.65 ▲4.59
Dashboard /wp-admin3.73 ▲0.3850.40 ▼8.80
Posts /wp-admin/edit.php3.78 ▲0.4250.98 ▲4.14
Add New Post /wp-admin/post-new.php6.26 ▲0.3783.75 ▼13.99
Media Library /wp-admin/upload.php3.59 ▲0.3537.20 ▲4.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Social Media Counters for WordPress - Arkam Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲19413.45 ▼0.841.69 ▼0.1239.85 ▼3.82
Dashboard /wp-admin2,332 ▲1475.06 ▼0.02100.22 ▼1.8978.92 ▲33.87
Posts /wp-admin/edit.php2,217 ▲1282.47 ▲0.4641.78 ▲1.0137.03 ▲4.38
Add New Post /wp-admin/post-new.php1,789 ▲24722.74 ▼0.29754.28 ▲97.7337.16 ▼19.93
Media Library /wp-admin/upload.php1,505 ▲1174.46 ▲0.25102.61 ▼4.7271.42 ▲24.90

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_arkam_lite_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6 in arkam-lite/assets to your readme.txt
You can take inspiration from this readme.txt

arkam-lite/init.php 92% from 13 tests

The main PHP script in "Social Media Counters for WordPress - Arkam Lite" version 1.0.1 is automatically included on every request by WordPress
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 ("arkam-lite.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,237 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PO File2340540551

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.70
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods22.70%
▷ Public methods6891.89%
▷ Protected methods00.00%
▷ Private methods68.11%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png4.51KB2.37KB▼ 47.42%