78% evergreen-content-poster

Code Review | Evergreen Content Poster - Auto Post and Schedule Your Best Content to Social Media

WordPress plugin Evergreen Content Poster - Auto Post and Schedule Your Best Content to Social Media scored78%from 54 tests.

About plugin

  • Plugin page: evergreen-content...
  • Plugin version: 1.3.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Dec 2, 2022
  • Number of updates: 33
  • Update frequency: every 20.6 days
  • Top authors: usergrowth (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

100+ active /4,763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲2.33MB] [CPU: ▲15.81ms] Passed 4 tests

Server-side resources used by Evergreen Content Poster - Auto Post and Schedule Your Best Content to Social Media
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.79 ▲2.33159.97 ▲112.20
Dashboard /wp-admin5.64 ▲2.3466.03 ▲11.43
Posts /wp-admin/edit.php5.70 ▲2.3467.18 ▲19.21
Add New Post /wp-admin/post-new.php8.24 ▲2.36110.65 ▲11.45
Media Library /wp-admin/upload.php5.55 ▲2.3256.48 ▲21.15
Configurator /wp-admin/admin.php?page=evergreen-content-configurator5.5762.01
Content Library /wp-admin/admin.php?page=evergreen-content-library5.5866.22
Settings /wp-admin/admin.php?page=evergreen-content-settings5.8363.67

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: 2 new tables, 15 new options
New tables
wp_evergreen_categories
wp_evergreen_content_logs
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
ecp-event-add-time
widget_recent-posts
ecp_buffer_profiles
ecp_options
db_upgraded
ecp_schedule_settings
widget_recent-comments
ecp-offer-add-time
...

Browser metrics Passed 4 tests

Checking browser requirements for Evergreen Content Poster - Auto Post and Schedule Your Best Content to Social Media
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,228 ▲48216.34 ▲1.661.87 ▲0.0039.31 ▼7.44
Dashboard /wp-admin2,604 ▲4167.22 ▲1.40149.63 ▲40.48109.87 ▲70.69
Posts /wp-admin/edit.php2,351 ▲2624.41 ▲2.4062.85 ▲22.2530.91 ▼2.35
Add New Post /wp-admin/post-new.php6,392 ▲4,87119.70 ▼3.47853.11 ▲221.3741.76 ▼16.83
Media Library /wp-admin/upload.php1,486 ▲985.72 ▲1.5393.05 ▼21.1841.83 ▼2.08
Configurator /wp-admin/admin.php?page=evergreen-content-configurator4,6426.53102.1297.88
Content Library /wp-admin/admin.php?page=evergreen-content-library3,4574.1159.9255.79
Settings /wp-admin/admin.php?page=evergreen-content-settings4,5364.2762.0266.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • ecp_options
    • ecp-offer-add-time
    • ecp-event-add-time

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/evergreen-content-poster/admin/partials/evergreen_content_poster-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/evergreen-content-poster/admin/partials/evergreen_content_statistics.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: auto post, buffer, share to social media, social media scheduling, social media sharing...

evergreen-content-poster/evergreen_content_poster.php 85% from 13 tests

"Evergreen Content Poster - Auto Post and Schedule Your Best Content to Social Media" version 1.3.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("evergreen-content-poster.php" instead of "evergreen_content_poster.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 388 characters long)

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin28,063 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP191,4791,81311,885
PO File63,2686,7349,621
JavaScript66532603,268
CSS46821213,263
SVG90026

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 259)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity114.93
▷ Minimum class complexity1.00
▷ Maximum class complexity635.00
Average method complexity9.67
▷ Minimum method complexity1.00
▷ Maximum method complexity259.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods184
▷ Static methods52.72%
▷ Public methods16991.85%
▷ Protected methods00.00%
▷ Private methods158.15%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.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
5 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/ecp-no-visual-attached-mandatory.png9.97KB10.52KB0.00%
admin/img/ecp-image-not-found.png5.30KB5.52KB0.00%
admin/img/ecp-profile-unknown.png5.91KB6.13KB0.00%
admin/img/ecp-no-video-attached-mandatory.png10.04KB10.59KB0.00%
admin/img/ecp-no-visual-attached.png7.89KB8.28KB0.00%