67% lemonade-sna-pinterest-edition

Code Review | Lemonade Social Networks Autoposter Pinterest

WordPress plugin Lemonade Social Networks Autoposter Pinterest scored 67% from 54 tests.

About plugin

  • Plugin page: lemonade-sna-pint...
  • Plugin version: 2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Dec 22, 2017
  • Latest release: Jan 3, 2018
  • Number of updates: 8
  • Update frequency: every 3.0 days
  • Top authors: lemonadestudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 2,391 total downloads

Benchmarks

Plugin footprint 65% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.72MB] [CPU: ▲3.76ms] Passed 4 tests

A check of server-side resources used by Lemonade Social Networks Autoposter Pinterest
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.17 ▲0.7057.07 ▲11.62
Dashboard /wp-admin4.02 ▲0.7151.18 ▲2.76
Posts /wp-admin/edit.php4.13 ▲0.7757.26 ▲8.68
Add New Post /wp-admin/post-new.php6.62 ▲0.7396.68 ▼4.47
Media Library /wp-admin/upload.php3.94 ▲0.7142.11 ▲8.06
Pins /wp-admin/admin.php?page=lemonade_sna_pinterest33.9237.06
API Settings /wp-admin/admin.php?page=lemonade_sna_pinterest23.93185.62
Getting PRO /wp-admin/admin.php?page=lemonade_sna_pinterest73.9135.50
Lemonade SNA Pinterest /wp-admin/admin.php?page=lemonade_sna_pinterest13.9137.09
Autoposter /wp-admin/admin.php?page=lemonade_sna_pinterest53.9037.47
Live Stream /wp-admin/admin.php?page=lemonade_sna_pinterest63.9137.65

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: 2 new tables, 6 new options
New tables
wp_lemonade_autoposter_posts_published
wp_lemonade_autoposter_templates
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Lemonade Social Networks Autoposter Pinterest
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.35 ▼1.231.91 ▲0.1144.07 ▲6.45
Dashboard /wp-admin2,248 ▲575.86 ▲0.9898.63 ▼9.9340.69 ▲0.44
Posts /wp-admin/edit.php2,137 ▲452.05 ▲0.0339.61 ▼2.1135.95 ▼0.05
Add New Post /wp-admin/post-new.php1,564 ▲4523.14 ▼0.06661.35 ▲76.2353.53 ▲0.39
Media Library /wp-admin/upload.php1,430 ▲454.18 ▼0.03103.30 ▲0.5846.00 ▲1.75
Pins /wp-admin/admin.php?page=lemonade_sna_pinterest31,4253.2759.72103.72
API Settings /wp-admin/admin.php?page=lemonade_sna_pinterest21,0223.3344.9733.96
Getting PRO /wp-admin/admin.php?page=lemonade_sna_pinterest79282.9439.5845.85
Lemonade SNA Pinterest /wp-admin/admin.php?page=lemonade_sna_pinterest11,2483.2754.8230.95
Autoposter /wp-admin/admin.php?page=lemonade_sna_pinterest55,4953.46120.7943.41
Live Stream /wp-admin/admin.php?page=lemonade_sna_pinterest68542.9036.4630.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_lemonade_autoposter_posts_published
    • wp_lemonade_autoposter_templates
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=lemonade_sna_pinterest5
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

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
Please fix the following
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'DirkGroenen\\Pinterest\\Endpoints\\Endpoint' not found in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/api/Pinterest-API-PHP-master/src/Pinterest/Endpoints/Boards.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'DirkGroenen\\Pinterest\\Endpoints\\Endpoint' not found in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/api/Pinterest-API-PHP-master/src/Pinterest/Endpoints/Following.php:16
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/tiles/lemonade_sna_pinterest_streamer.php on line 16
    • > PHP Fatal error
      require(): Failed opening required 'LEMONADE_SNA_PINTEREST_EXT_PATH/api/Pinterest-API-PHP-master/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/tiles/lemonade_sna_pinterest_show_boards.php on line 14
    • > PHP Warning
      require(LEMONADE_SNA_PINTEREST_EXT_PATH/api/Pinterest-API-PHP-master/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/tiles/lemonade_sna_get_pinterest_access_token.php on line 13
    • > PHP Warning
      Use of undefined constant LEMONADE_SNA_PINTEREST_PLUGIN_URL - assumed 'LEMONADE_SNA_PINTEREST_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/lemonade_sna_pinterest.php on line 22
    • > PHP Notice
      Undefined variable: template in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/tiles/lemonade_sna_pinterest_streamer.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/lemonade_sna_pinterest_actions.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'DirkGroenen\\Pinterest\\Endpoints\\Endpoint' not found in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/api/Pinterest-API-PHP-master/src/Pinterest/Endpoints/Users.php:16
    • > PHP Fatal error
      require_once(): Failed opening required 'LEMONADE_SNA_PINTEREST_EXT_PATH/api/Pinterest-API-PHP-master/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/lemonade-sna-pinterest-edition/pinterest/tiles/lemonade_sna_pinterest_post_on_board.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

lemonade-sna-pinterest-edition/lemonade_sna_core_pinterest.php 77% from 13 tests

The main file in "Lemonade Social Networks Autoposter Pinterest" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 286 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("lemonade-sna-pinterest-edition.php" instead of "lemonade_sna_core_pinterest.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin58,749 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
CSS161032324,231
JavaScript113,18568914,057
JSON40013,989
PHP338522,0205,051
Markdown52690811
SVG100542
YAML32035
XML21033

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity3.70
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods89
▷ Static methods00.00%
▷ Public methods8393.26%
▷ Protected methods00.00%
▷ Private methods66.74%
Functions67
▷ Named functions5480.60%
▷ Anonymous functions1319.40%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected