78% socials-ag

Code Review | Socials - AG

WordPress plugin Socials - AG scored78%from 54 tests.

About plugin

  • Plugin page: socials-ag
  • Plugin version: 0.00.01
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2
  • WordPress version: 6.3.1
  • First release: May 17, 2020
  • Latest release: Jan 14, 2021
  • Number of updates: 5
  • Update frequency: every 48.6 days
  • Top authors: antoinegautier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /382 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.47ms] Passed 4 tests

An overview of server-side resources used by Socials - AG
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.31 ▲7.49
Dashboard /wp-admin3.47 ▲0.1253.52 ▼4.92
Posts /wp-admin/edit.php3.58 ▲0.2248.38 ▲2.98
Add New Post /wp-admin/post-new.php6.05 ▲0.1685.05 ▼17.36
Media Library /wp-admin/upload.php3.39 ▲0.1640.57 ▲5.41
Follow /wp-admin/admin.php?page=ag-admin-page-follow3.3640.54
AGPlugin /wp-admin/admin.php?page=ag-admin-page3.3639.48
Share /wp-admin/admin.php?page=ag-admin-page-share3.3636.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Socials - AG
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.51 ▲0.161.90 ▲0.3441.90 ▲3.13
Dashboard /wp-admin2,222 ▲425.51 ▼0.1588.61 ▲3.2336.12 ▼7.15
Posts /wp-admin/edit.php2,127 ▲271.97 ▼0.0034.04 ▼1.4436.47 ▲3.63
Add New Post /wp-admin/post-new.php1,549 ▲2122.97 ▼0.42661.78 ▼5.2051.70 ▼10.37
Media Library /wp-admin/upload.php1,427 ▲274.20 ▲0.0297.13 ▼5.4040.58 ▼4.64
Follow /wp-admin/admin.php?page=ag-admin-page-follow1,0762.0023.5439.54
AGPlugin /wp-admin/admin.php?page=ag-admin-page7922.0223.5825.11
Share /wp-admin/admin.php?page=ag-admin-page-share8612.0324.9131.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 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 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/socials-ag/agplugin-socials-plugin.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'AGPlugin\\AdminPage' not found in wp-content/plugins/socials-ag/includes/Share.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AGPlugin\\AdminPage' not found in wp-content/plugins/socials-ag/includes/Follow.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: navigation, media, socials

socials-ag/agplugin-socials-plugin.php 85% from 13 tests

The entry point to "Socials - AG" version 0.00.01 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("socials-ag.php" instead of "agplugin-socials-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin618 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP42092342
CSS2813198
PO File1171850
Markdown18028

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity5.00
▷ Maximum class complexity8.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods29100.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin