84% social-planner

Code Review | Social Planner

WordPress plugin Social Planner scored84%from 54 tests.

About plugin

  • Plugin page: social-planner
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2021
  • Latest release: May 8, 2023
  • Number of updates: 16
  • Update frequency: every 52.4 days
  • Top authors: antonlukin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼6.50ms] Passed 4 tests

This is a short check of server-side resources used by Social Planner
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4846.41 ▲9.07
Dashboard /wp-admin3.79 ▲0.4445.14 ▼15.36
Posts /wp-admin/edit.php3.84 ▲0.4843.90 ▼0.11
Add New Post /wp-admin/post-new.php6.33 ▲0.4483.19 ▼10.69
Media Library /wp-admin/upload.php3.65 ▲0.4135.94 ▲0.16
Social Planner /wp-admin/options-general.php?page=social-planner3.6231.67

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Social Planner
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.43 ▼0.111.74 ▼0.1743.92 ▲2.10
Dashboard /wp-admin2,243 ▲695.54 ▲0.0481.72 ▼5.3341.62 ▲1.31
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0235.40 ▼1.1033.24 ▼4.86
Add New Post /wp-admin/post-new.php6,229 ▲4,70318.90 ▼4.70875.90 ▲197.8953.52 ▼6.33
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.0493.41 ▼7.0240.97 ▼3.48
Social Planner /wp-admin/options-general.php?page=social-planner8532.0422.6925.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Social_Planner\\esc_html_e() in wp-content/plugins/social-planner/templates/settings.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

social-planner/social-planner.php Passed 13 tests

The primary PHP file in "Social Planner" version 1.3.0 is used by WordPress to initiate all plugin functionality
126 characters long description:
This plugin automatically publishes posts from your blog to your social media accounts on Facebook, Twitter, VK.com, Telegram.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,594 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP157501,4111,996
JavaScript3313257848
CSS300750

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity20.92
▷ Minimum class complexity6.00
▷ Maximum class complexity44.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods129
▷ Static methods129100.00%
▷ Public methods6651.16%
▷ Protected methods00.00%
▷ Private methods6348.84%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants30
▷ Global constants516.67%
▷ Class constants2583.33%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin